function openMenu(cur)//显示菜单
{
eval("menu"+cur+".style.visibility='visible'")
//alert(menu1)
}
function closeMenu(cur)//隐藏菜单
{
eval("menu"+cur+".style.visibility='hidden'")
}
function openMenudown(cur)//显示菜单
{
eval("menudown"+cur+".style.visibility='visible'")
//alert(menu1)
}
function closeMenudown(cur)//隐藏菜单
{
eval("menudown"+cur+".style.visibility='hidden'")
}
function book_check()
{
if (document.book.name.value=="")
{
alert("请填写您的姓名")
document.book.name.focus()
document.book.name.select()
return
}
if (document.book.tel.value=="")
{
alert("请填写您的电话")
document.book.tel.focus()
document.book.tel.select()
return
}
if (document.book.shouji.value=="")
{
alert("请填写您的手机")
document.book.shouji.focus()
document.book.shouji.select()
return
}
if (document.book.address.value=="")
{
alert("请填写您的住址")
document.book.address.focus()
document.book.address.select()
return
}
if (document.book.email.value=="")
{
alert("请填写您的电子信息，如果没有，请填写shitouyu@163.com")
document.book.email.focus()
document.book.email.select()
return
}
if (document.book.infos.value=="")
{
alert("请填写你的留言")
document.book.infos.focus()
document.book.infos.select()
return
}
if (document.book.face.value=="")
{
alert("请选择您的表情")
document.book.face.focus()
document.book.face.select()
return
}
if (document.book.infos.value.length>350)
{
alert("请填写你的留言不得多于350个字")
document.book.infos.focus()
document.book.infos.select()
return
}
document.book.submit()
}

function eshop(id,language) { window.open("user/Eshop.asp?cpbm="+id+"&l="+language,"","height=400,width=640,left=200,top=0,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");}

function check_job()
{
if (document.job_save.name.value=="")
{
alert("申请人姓名不能为空")
document.job_save.name.focus()
document.job_save.name.select()
return
}
if (document.job_save.addrss.value=="")
{
alert("请填写你的地址")
document.job_save.addrss.focus()
document.job_save.addrss.select()
return
}
if (document.job_save.email.value=="")
{
alert("请填写您的联系信箱")
document.job_save.email.focus()
document.job_save.email.select()
return
}
if (document.job_save.tel.value=="")
{
alert("请填写您的电话")
document.job_save.tel.focus()
document.job_save.tel.select()
return
}
if (document.job_save.content.value=="")
{
alert("反馈信息不能为空")
document.job_save.content.focus()
document.job_save.content.select() 
return
}
document.job_save.submit()
}

function chkitem(str)
{	
var strSource ="0123456789-";
var ch;
var i;
var temp;

for (i=0;i<=(str.length-1);i++)
{

ch = str.charAt(i);
temp = strSource.indexOf(ch);
if (temp==-1)
{
return 0;
}
}
if (strSource.indexOf(ch)==-1)
{
return 0;
}
else
{
return 1;
}


}

function FORM1_onsubmit()
{
if (chkitem(document.FORM1.Form_Id.value)==0)
{
alert("请输入正确的订单号码。");
document.FORM1.Form_Id.focus();
return false;
}
}

function CheckForm_user()
{
	if(document.UserLogin.UserName.value=="")
	{
		alert("请输入用户名！");
		document.UserLogin.UserName.focus();
		return false;
	}
	if(document.UserLogin.Password.value == "")
	{
		alert("请输入密码！");
		document.UserLogin.Password.focus();
		return false;
	}
}


function check_user_reg()
{
if (document.UserReg.UserName.value=="")
{
alert("请填写您的用户名")
document.UserReg.UserName.focus()
document.UserReg.UserName.select()
return
}
if (document.UserReg.Password.value=="")
{
alert("请填写您的密码")
document.UserReg.Password.focus()
document.UserReg.Password.select()
return
}
if (document.UserReg.PwdConfirm.value=="")
{
alert("请填写您的确认密码")
document.UserReg.PwdConfirm.focus()
document.UserReg.PwdConfirm.select()
return
}
if (document.UserReg.Question.value=="")
{
alert("请填写您的密码问题")
document.UserReg.Question.focus()
document.UserReg.Question.select()
return
}
if (document.UserReg.Answer.value=="")
{
alert("请填写您的密码问题答案")
document.UserReg.Answer.focus()
document.UserReg.Answer.select()
return
}
if (document.UserReg.Email.value=="")
{
alert("请填写你的信箱")
document.UserReg.Email.focus()
document.UserReg.Email.select()
return
}
if (document.UserReg.Add.value=="")
{
alert("请填写你的地址")
document.UserReg.Add.focus()
document.UserReg.Add.select()
return
}
if (document.UserReg.Zip.value=="")
{
alert("请填写你的地邮编")
document.UserReg.Zip.focus()
document.UserReg.Zip.select()
return
}
if (document.UserReg.UserName.value.length>14)
{
alert("请填写你的注册用户名不得多于14个字")
document.UserReg.UserName.focus()
document.UserReg.UserName.select()
return
}
document.UserReg.submit()
}