function showHide(obj) {
	var flag = document.getElementById(obj).style.display;
	if (flag == "none" | flag == "") {
		showObj(obj);
	} else {
		hideObj(obj);
	}
}

function showObj(id){
	if(document.all){
		document.all(id).style.display = "block";
	} else {
		document.getElementById(id).style.display = "block";
	}
}
function hideObj(id){
	if(document.all){
		document.all(id).style.display = "none";
	} else {
		document.getElementById(id).style.display = "none";
	}
}
function hideAll(maxNum) {
	for(i=0; i<maxNum; i++) {
		var objName = "itemSpec_" + i;
		document.getElementById(objName).style.display = "none";
	}
}
function showMe(whichObj,maxNum) {
	hideAll(maxNum);
	document.getElementById(whichObj).style.display = "block";
}

function whichMenu(num, color) {
	document.getElementById("menu" + num).style.backgroundColor = color;
}


function linkFrame(ONorOFF, baseBox) {
/*
	if (ONorOFF == "ON") {
		var pos = YAHOO.util.Dom.getXY(baseBox);
		YAHOO.util.Dom.setXY("linkFrame", pos, true);
	} else {
		YAHOO.util.Dom.setXY("linkFrame", [-100, -100], true);
	}
*/
}


function hiliteCheck(myPage){ // hiliteCheck(<!--{ $smarty.server.PHP_SELF }-->)
	switch (myPage) {
	case "/products/detail_modelRoom.php":
		whichMenu(0, "#990000");
		break;
	case "/products/list_modelRoom.php":
		whichMenu(0, "#990000");
		break;
	case "/products/list.php":
		whichMenu(1, "#990000");
		break;
	case "/user_data/totalCordinate/Kojin.php":
		whichMenu(2, "#990000");
		break;
	case "/user_data/onepointAdvice/index.php":
		whichMenu(3, "#990000");
		break;
	default:
		break;
	}
}
function cartBoxCheck() {
	if (YAHOO.util.Dom.inDocument("cartBox")) {
		var str = document.getElementById("cartInner").innerHTML;
			if (str == "") {
				document.getElementById("cartBox").style.display = "none";
			}
	}
}

