var image1=new Image()
image1.src="new_chinese/images/adv1.jpg"
var image2=new Image()
image2.src="new_chinese/images/adv2.jpg"
var image3=new Image()
image3.src="new_chinese/images/adv3.jpg"
 
function slidelink(){
if (whichimage==1)
window.location="new_chinese/productdetail.asp?pid=3"
else if (whichimage==2)
window.location="new_chinese/productdetail.asp?pid=46"
else if (whichimage==3)
window.location="new_chinese/productdetail.asp?pid=55"
}

var number_of_images=3
//change speed below (in seconds)
var speed=2
var step=1
var whichimage=1
function slideit(){
if (!document.images)
return
if (document.all)
slide.filters.blendTrans.apply()
document.images.slide.src=eval("image"+step+".src")
if (document.all)
slide.filters.blendTrans.play()
whichimage=step
if (step<number_of_images)
step++
else
step=1
if (document.all)
setTimeout("slideit()",speed*2000+3000)
else
setTimeout("slideit()",speed*2000)
}

function ValidateForm(theForm)
{
if (theForm.page.value.length==0) {
		alert("页码不能为空。");
		theForm.page.focus();
		return false;
	  }
    sn=theForm.page.value
    number="0123456789";	
	for(var i=0; i < sn.length;i++){
        if (number.indexOf(sn.charAt(i))>=0 && sn.charAt(0)>0){
					continue;                    
                }else{
					alert("请输入正确页码"); 					
					theForm.page.focus()
					return false;                   
                }
    }	


}


function ValidateForm_feedback(theForm)
{
	if (theForm.name.value.length==0) {
		alert("姓名不能为空。");
		theForm.name.focus();
		return false;
	}	
	
	if (theForm.content.value.length==0) {
		alert("服务建议不能为空。");
		theForm.content.focus();
		return false;
	}	

	if (theForm.address.value.length==0) {
		alert("地址不能为空。");
		theForm.address.focus();
		return false;
	}	

    if (theForm.company.value.length==0) {
		alert("单位不能为空。");
		theForm.company.focus();
		return false;
	}	

   if (theForm.tel.value.length==0) {
		alert("电话不能为空。");
		theForm.tel.focus();
		return false;
	}	
	
	if (theForm.fax.value.length==0) {
		alert("传真不能为空。");
		theForm.fax.focus();
		return false;
	}	

	
  if (theForm.email.value.length==0) {
		alert("邮件不能为空。");
		theForm.email.focus();
		return false;
	}	
 


}


function ValidateForm_contact(theForm)
{
	
	if (theForm.product.value.length==0) {
		alert("产品型号不能为空。");
		theForm.product.focus();
		return false;
	}	
	
    if (theForm.num.value.length==0) {
		alert("产品数量不能为空。");
		theForm.num.focus();
		return false;
	  }
     sn=theForm.num.value
    number="0123456789";	
	for(var i=0; i < sn.length;i++){
        if (number.indexOf(sn.charAt(i))>=0){
					continue;                    
                }else{
					alert("请输入正确数字"); 					
					theForm.num.focus()
					return false;                   
                }
    }	


	
	if (theForm.name.value.length==0) {
		alert("姓名不能为空。");
		theForm.name.focus();
		return false;
	}	
	
	if (theForm.content.value.length==0) {
		alert("备注不能为空。");
		theForm.content.focus();
		return false;
	}	

	if (theForm.address.value.length==0) {
		alert("地址不能为空。");
		theForm.address.focus();
		return false;
	}	

    if (theForm.company.value.length==0) {
		alert("单位不能为空。");
		theForm.company.focus();
		return false;
	}	

   if (theForm.tel.value.length==0) {
		alert("电话不能为空。");
		theForm.tel.focus();
		return false;
	}	
	
	if (theForm.fax.value.length==0) {
		alert("传真不能为空。");
		theForm.fax.focus();
		return false;
	}	

	
  if (theForm.email.value.length==0) {
		alert("邮件不能为空。");
		theForm.email.focus();
		return false;
	}	
 


}


function check_all()
{
if(!ifGBK(document.form1.cus_cust_id.value,false))
{
alert("用户名必须为字母或数字");
document.form1.cus_cust_id.select();
document.form1.cus_cust_id.focus();
return false;
}
if(ifMobile(document.form1.cus_cust_id.value,true))
{
alert("类手机号不能作为用户名");
document.form1.cus_cust_id.select();
document.form1.cus_cust_id.focus();
return false;
}
if(document.form1.cus_cust_passwd.value.length<=0 ||document.form1.cus_cust_passwd_confirm.value.length<=0 ||(document.form1.cus_cust_passwd.value!=document.form1.cus_cust_passwd_confirm.value))
{
alert("必须输入密码");
document.form1.cus_cust_passwd.value="";
document.form1.cus_cust_passwd_confirm.value="";
document.form1.cus_cust_passwd.focus();
return false;
}
if(document.form1.cus_email.value.length<=0&&document.form1.cus_cust_mobile.value.length<=0)
{
alert("邮箱和手机号必须输入一项");
return false;
}
if(!ifEmail(document.form1.cus_email.value,true))
{
alert("请输入正确的邮箱地址");
document.form1.cus_email.select();
document.form1.cus_email.focus();
return false;
}
if(!ifMobile(document.form1.cus_cust_mobile.value,true))
{
alert("手机号不正确");
document.form1.cus_cust_mobile.select();
document.form1.cus_cust_mobile.focus();
return false;
}
return true;
}




function JobForm(theForm)
{
	if (theForm.name.value.length==0) {
		alert("姓名不能为空。");
		theForm.name.focus();
		return false;
	}	
	
	today=new Date(theForm.b_yy.value,theForm.b_mm.value-1,theForm.b_dd.value)
	if(today.getMonth()!=theForm.b_mm.value-1)
	{
		alert("请输入正确出生日期！");
		theForm.b_dd.focus();
		return false;
	}
	
	
	if (theForm.sg.value.length==0) {
		alert("身高不能为空。");
		theForm.sg.focus();
		return false;
	  }
     sn=theForm.sg.value
    number="0123456789";	
	for(var i=0; i < sn.length;i++){
        if (number.indexOf(sn.charAt(i))>=0){
					continue;                    
                }else{
					alert("请输入正确数字"); 					
					theForm.sg.focus()
					return false;                   
                }
    }	
    
    if (theForm.tz.value.length==0) {
		alert("体重不能为空。");
		theForm.tz.focus();
		return false;
	  }
     sn=theForm.tz.value
    number="0123456789";	
	for(var i=0; i < sn.length;i++){
        if (number.indexOf(sn.charAt(i))>=0){
					continue;                    
                }else{
					alert("请输入正确数字"); 					
					theForm.tz.focus()
					return false;                   
                }
    }	
    
    
	if (theForm.hkszd.value==0) {
		alert("户籍所在地不能为空。");
		theForm.hkszd.focus();
		return false;
	}	
	
	endday=new Date(theForm.endday_yy.value,theForm.endday_mm.value-1,theForm.endday_dd.value)
	if(endday.getMonth()!=theForm.endday_mm.value-1)
	{
		alert("请输入正确毕业日期！");
		theForm.endday_dd.focus();
		return false;
	}

	
	if (theForm.xx.value.length==0) {
		alert("毕业学校不能为空。");
		theForm.xx.focus();
		return false;
	}
	
	if (theForm.dywy.value.length==0) {
		alert("第一外语不能为空。");
		theForm.dywy.focus();
		return false;
	}

	if (theForm.sp.value.length==0) {
		alert("水平不能为空。");
		theForm.sp.focus();
		return false;
	}
	
	if (theForm.zy.value.length==0) {
		alert("专业不能为空。");
		theForm.zy.focus();
		return false;
	}
	
	if (theForm.oldwork.value.length==0) {
		alert("现从事岗位不能为空。");
		theForm.oldwork.focus();
		return false;
	}
	
	if (theForm.cszy.value.length==0) {
		alert("从事专业不能为空。");
		theForm.cszy.focus();
		return false;
	}
	
	dzday=new Date(theForm.dz_yy.value,theForm.dz_mm.value-1,theForm.dz_dd.value)
	if(dzday.getMonth()!=theForm.dz_mm.value-1)
	{
		alert("请输入正确到职日期！");
		theForm.dz_dd.focus();
		return false;
	}

    if (theForm.dz.value.length==0) {
		alert("联系地址不能为空。");
		theForm.dz.focus();
		return false;
	}

	if (theForm.tel.value.length==0) {
		alert("联系电话/手机不能为空。");
		theForm.tel.focus();
		return false;
	  }
     sn=theForm.tel.value
    number="0123456789";	
	for(var i=0; i < sn.length;i++){
        if (number.indexOf(sn.charAt(i))>=0){
					continue;                    
                }else{
					alert("请输入正确数字"); 					
					theForm.tel.focus()
					return false;                   
                }
    }	
	
	if (theForm.post.value.length==0) {
		alert("邮编不能为空。");
		theForm.post.focus();
		return false;
	  }
     sn=theForm.post.value
    number="0123456789";	
	for(var i=0; i < sn.length;i++){
        if (number.indexOf(sn.charAt(i))>=0){
					continue;                    
                }else{
					alert("请输入正确数字"); 					
					theForm.post.focus()
					return false;                   
                }
    }	

if (theForm.email.value.length==0) {
		alert("邮箱不能为空。");
		theForm.email.focus();
		return false;
	}


	 if (theForm.jl.value.length==0) {
		alert("个人简历不能为空。");
		theForm.jl.focus();
		return false;
	}

    if (theForm.tc.value.length==0) {
		alert("工作业绩和特长不能为空。");
		theForm.tc.focus();
		return false;
	}

}



function efeedback(theForm)
{
	if (theForm.name.value.length==0) {
		alert("Please fill in the name。");
		theForm.name.focus();
		return false;
	}	
	
	if (theForm.content.value.length==0) {
		alert("Please fill in the suggestions 。");
		theForm.content.focus();
		return false;
	}	

	if (theForm.address.value.length==0) {
		alert("Please fill in the address。");
		theForm.address.focus();
		return false;
	}	

    if (theForm.company.value.length==0) {
		alert("Please fill in the company。");
		theForm.company.focus();
		return false;
	}	

   if (theForm.country.value.length==0) {
		alert("Please fill in the country。");
		theForm.country.focus();
		return false;
	}	


   if (theForm.tel.value.length==0) {
		alert("Please fill in the telephone。");
		theForm.tel.focus();
		return false;
	}	
	
	if (theForm.fax.value.length==0) {
		alert("Please fill in the Fax。");
		theForm.fax.focus();
		return false;
	}	

	
  if (theForm.email.value.length==0) {
		alert("Please fill in the E-Mail。");
		theForm.email.focus();
		return false;
	}	
 


}


function econtact(theForm)
{
	if (theForm.product.value.length==0) {
		alert("Please fill in  type of the product。");
		theForm.product.focus();
		return false;
	}	
	
    if (theForm.num.value.length==0) {
		alert("Please fill in Quantity of the products。");
		theForm.num.focus();
		return false;
	  }
     sn=theForm.num.value
    number="0123456789";	
	for(var i=0; i < sn.length;i++){
        if (number.indexOf(sn.charAt(i))>=0){
					continue;                    
                }else{
					alert("Please input the correct figure "); 					
					theForm.num.focus()
					return false;                   
                }
    }	

	if (theForm.content.value.length==0) {
		alert("Please fill in the content 。");
		theForm.content.focus();
		return false;
	}	
	
	if (theForm.name.value.length==0) {
		alert("Please fill in the name。");
		theForm.name.focus();
		return false;
	}	
	
	

	if (theForm.address.value.length==0) {
		alert("Please fill in the address。");
		theForm.address.focus();
		return false;
	}	

    if (theForm.company.value.length==0) {
		alert("Please fill in the company。");
		theForm.company.focus();
		return false;
	}	

   if (theForm.country.value.length==0) {
		alert("Please fill in the country。");
		theForm.country.focus();
		return false;
	}	


   if (theForm.tel.value.length==0) {
		alert("Please fill in the telephone。");
		theForm.tel.focus();
		return false;
	}	
	
	if (theForm.fax.value.length==0) {
		alert("Please fill in the Fax。");
		theForm.fax.focus();
		return false;
	}	

	
  if (theForm.email.value.length==0) {
		alert("Please fill in the E-Mail。");
		theForm.email.focus();
		return false;
	}	
 }


function reapply()
{
setTimeout("slideit()",2000)
return true
}
window.onerror=reapply



