// ===================================================
//
// ===================================================
function TabChange(obj,no,len)
{
	for(i = 1 ; i <=len ; i++)
	{
		tabImg		= eval("document.images['"+obj+"Tab" + i + "']") ;
		if(document.all)
		{
			tabLayer	= eval("document.all."+obj+"List" + i) ;
		}
		else
		{
			tabLayer	= document.getElementById(obj+"List" + i) ;
		}

		if( i == no)
		{
			tabImg.src = "./html/images/main/"+obj+"_tab_on_0" + i + ".gif" ;
			tabLayer.style.display = '';
		}
		else
		{
			tabImg.src = "./html/images/main/"+obj+"_tab_off_0" + i + ".gif" ;
			tabLayer.style.display = 'none';
		}
	}
}



// ===================================================
//
// ===================================================
function TabLink(dest,mcode,cate_var)
{
	location.href=dest+"?mnucode="+mcode+"&cate_var="+cate_var;
}
// ===================================================


// ===================================================
//
// ===================================================
function viewContents(no,mode,mnucode,code)
{
	document.viewForm.no.value	= no;
	document.viewForm.mode.value	= mode;
	document.viewForm.action = "sub.html?mnucode="+mnucode+"&code="+code+"&page=1";
	document.viewForm.submit();
}
// ===================================================



// ===================================================
//
// ===================================================
function popupPage(popCnt,multipopCnt)
{
	if(popCnt > 0)	openPop();
	if(multipopCnt > 0)	 openMultiPop();
}

function openPop()
{
	for(i = 0 ; i < popObj.length ; i++)
	{
		if(!getCookie(popObj[i][3]))
		{
			window.open(popObj[i][0],popObj[i][1],popObj[i][2]);
		}
	}
}

function openMultiPop(url)
{
	var noticeCookie=getCookie("multipopup");

	if (noticeCookie != "yes")
		window.open(multipopObj[0],'multipopup','width=350,height=400,top=0,left=0');
}
// ===================================================


// ===================================================
//
// ===================================================
function checkForm(form)
{
	if (form.key.value == false)
	{
		alert("検索キーワードを入力してください");
		form.key.focus();
		return false;
	}

}
// ===================================================

