/*ポップアップ(各ページ側でサイズ指定)*/
function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

/*ポップアップ*/
function open_popupWindow(theURL,winName) {
  window.open(theURL,winName,'scrollbars=yes,resizable=yes,width=650');
}

/*ポップアップ(店舗地図)*/
function open_popupMap(theURL,winName) {
  window.open(theURL,winName,'scrollbars=yes,resizable=yes,width=650,height=550');
}

/*ポップアップインターネットB体験版*/
function openWin_trial()
{
var trial = window.open("", "pop_trial", "width=800,height=700,scrollbars=1,resizable=1,toolbar=0,menubar=1,location=1,status=1");
trial.focus();
}



/*外部リンク(アラート有無判断付き)*/
function blankOpen(url,msg) {
	if(msg.length == 0) {
		window.open( url,"_blank");
	}
	if(msg.length != 0) {
		window.alert(msg);
		window.open( url,"_blank");
	}
}

/*偶数行のリスト色変換*/
/*指定された偶数行目の色を#ffffffに戻します*/
function setTRColor(neme) {
	var lineCnt;
	var preKeywID;
	tBodyObj = document.getElementById(neme);
	preKeywID = '';	
	for (i=0; i<tBodyObj.childNodes.length; i++) {	//<TBODY>内（<TR>ループ）
		trObj = tBodyObj.childNodes.item(i);	//<TR>エレメント取得
		if ((trObj.tagName == 'TR') && (trObj.id != '')) {
			keywId = trObj.id.substr(0,12);
			if (preKeywID != keywId) {
				lineCnt = 1;
				preKeywID = keywId;
			} else {
				lineCnt = lineCnt + 1;
			}
			if ((lineCnt%2) == 1) {
				trObj.style.background = "#ffffff";
			}
		}
	}
}


