function TabChange(obj,no,len)
{
	for(i = 1 ; i <=len ; i++)
	{
		tabImg		= eval("document.images['"+obj+"Tab" + i + "']") ;
		tabLayer	= eval("document.all."+obj+"List" + i) ;

		if( i == no)
		{
			tabImg.src = "./images/main/"+obj+"Tab_on_0" + i + ".gif" ;
			tabLayer.style.display = '';
		}
		else
		{
			tabImg.src = "./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,proc)
{
	if (document.ssearchForm.key.value == false)
	{
		alert("検索キーワードを入力してください");
		document.ssearchForm.key.focus();
		return false;
	}
	else
	{
		document.ssearchForm.action = proc;
		document.ssearchForm.submit();
	}
}


