window.onload = function() {
	setTitle();
}

//=====================================
//タイトルを挿入
//=====================================
function setTitle() {
	document.title = "WEBオフィス百科辞典";
}

//=====================================
//マウスオーバーで背景色を設定
//=====================================
function overLine(ID,lineNo) {
	ID = ID.substr(0,ID.indexOf('_', 0));
	for (i=1; i<=lineNo; i++) {
		document.getElementById(ID + "_" + i).style.backgroundColor = "#EDF0F8";
	}
}


//=====================================
//マウスアウトで背景色を解除
//=====================================
function outLine(ID,lineNo) {
	ID = ID.substr(0,ID.indexOf('_', 0));
	for (i=1; i<=lineNo; i++) {
		document.getElementById(ID + "_" + i).style.backgroundColor = "";
	}
}

//=====================================
//選択商品の数をカウントUPまたはDOWN
//=====================================
function countUp(chk) {
	var itemNo = parent.listFrame.document.getElementById("track").innerHTML;
	parent.listFrame.document.getElementById("track").innerHTML = parseInt(itemNo) + 1;
}
//=====================================
//比較商品の数をカウントUPまたはDOWN
//=====================================
function countUpHikaku(chk) {
	var itemNo = parent.listFrame.document.getElementById("hikaku").innerHTML;
	parent.listFrame.document.getElementById("hikaku").innerHTML = parseInt(itemNo) + 1;
}
//=====================================
//商品詳細ウィンドウの表示
//=====================================
function openInfo(ancor) {
	if(!ancor) { ancor = "";}
	var infoW = window.open("http://www3.mediasoft.ne.jp/office-zukan2008/cwn_shouhinDetail.php" + ancor ,"infoW","width=580 height=600 resizable=1 toolbar=1 scrollbars=1 menubar=1 status=1");
//	var infoW = window.open("http://172.16.193.24/office-zukan2008/cwn_shouhinDetail.php" + ancor ,"infoW","width=580 height=600 resizable=1 toolbar=1 scrollbars=1 menubar=1 status=1");
	infoW.focus();
}

