// JavaScript Document
function showdiv(divnum,divbefor,id){
	for(i=1;i<=divnum;i++){
		try{
			if(i==divbefor){
				document.getElementById(id+i).style.display="inline";
			}else{
				document.getElementById(id+i).style.display="none";
			}
		}catch(e){ }
	}
}

function winopen(theURL,pwidth,pheight) { //v2.0
  window.open(theURL,'','width='+ pwidth +',height='+ pheight + ',scrollbars=yes');
}

function checkvip()
{
  if(document.Login.yhuser.value=="") {
    alert("对不起，请填写您的用户名称！");
	document.Login.yhuser.focus();
	return false;
  }
 
 if(document.Login.yhpass.value=="") {
    alert("对不起，请填写您的密码！");
	document.Login.yhpass.focus();
	return false;
  }
 if(document.Login.yhvip.value=="") {
    alert("对不起，请选择会员类型！");
	document.Login.yhvip.focus();
	return false;
  }
}

function CheckForm(){
  if (document.addform.yhwords.value=="")
  {
    alert("搜索关键字不能为空！");
	document.addform.yhwords.focus();
	return false;
  }
  return true;  
}
