<!--
function Validate(theForm)
{
	if (theForm.xm.value == "")
  {
    alert("请输入您的姓名！");
    theForm.xm.focus();
    return (false);
  }  
  
   
    var strText=theForm.sfzh.value;   
    if(strText.match(/[\uff00-\uffff]/g))
    {
    alert("请输入半角数字！");
    return (false);
    }
    
	var sfz_if=/^\d{17}[\d|X]|^\d{15}$/;
	var objExp=new RegExp(sfz_if);
	if(!objExp.test(strText)==true)
	{
	alert('身份证号只能由15数字或18位数字或17位数字加一位“X”组成！');
	return (false);
	}  
	
	if (theForm.sfzh.value == "")
  {
   return confirm("您的身份证号真的是空的吗?\n请确认...");
  }    


	if (theForm.mm_dm.value == "")
  {
    alert("请选择您的政治面貌！");
    theForm.mm_dm.focus();
    return (false);
  }  

	if (theForm.xl_dm.value == "")
  {
    alert("请选择您的文化程度！");
    theForm.xl_dm.focus();
    return (false);
  }  


	if (theForm.ks_byxx.value == "")
  {
    alert("请输入您的毕业学校！");
    theForm.ks_byxx.focus();
    return (false);
  }  


	if (theForm.zydh.value == "")
  {
    alert("请选择您的专业意向！");
    theForm.zydh.focus();
    return (false);
  }  

	if (theForm.ks_phone.value == "")
  {
    alert("请输入您的电话号码！");
    theForm.ks_phone.focus();
    return (false);
  }  
  
      var strText=theForm.ks_phone.value;   
    if(strText.match(/[\uff00-\uffff]/g))
    {
    alert("电话号码错误:请输入半角数字！");
    return (false);
    }

	if (theForm.ks_phone.value.length<7)
      {
        alert("请输入您的电话号码不正确！");
        theForm.ks_phone.focus();
    return (false);
      } 

  	if (theForm.ks_address.value == "")
  {
    alert("请输入您的通信地址！");
    theForm.ks_address.focus();
    return (false);
  }  

  	if (theForm.ks_address.value.length<6)
      {
        alert("请输入您的通信地址不完全！");
    theForm.ks_address.focus();
    return (false);
      } 

  	if (theForm.ks_zip.value == "")
  {
    alert("请输入您的邮政编码！");
    theForm.ks_zip.focus();
    return (false);
  }  

    var strText=theForm.ks_zip.value;   
    if(strText.match(/[\uff00-\uffff]/g))
    {
    alert("邮政编码错误:请输入半角数字！");
    return (false);
    }


if (theForm.pwd.value == "")
  {
    alert("请输入您的密码!");
    theForm.pwd.focus();
    return (false);
  }

	  if (theForm.pwd.value !=theForm.confirmpwd.value)
  {
    alert("您输入的密码与确认密码不符!");
	theForm.pwd.select();
    theForm.pwd.focus();//聚焦
	theForm.confirmpwd.value="";//置空
    return (false);
  }

	var checkOKpass = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0!123456789";//密码表
	var checkStrpass = theForm.pwd.value;
	var allValidpass = true;
	for (i = 0;  i < checkStrpass.length;  i++)
	{
		ch = checkStrpass.charAt(i);
		for (j = 0;  j < checkOKpass.length;  j++)
		if (ch == checkOKpass.charAt(j))
			break;
		if (j == checkOKpass.length)
		{
			allValidpass = false;
			break;
		}
	}

	if (!allValidpass)
	{
		alert("您输入的 \"密码\" 包含无效字符 !");
	theForm.pwd.select();
    theForm.pwd.focus();
	theForm.confirmpwd.value="";
		return (false);
	}
	
	
	if (theForm.pwd.value.length < 6 ||theForm.pwd.value.length>20 )           
	{           
			allValidpass = false;           
	}           
           
	if (!allValidpass)           
	{           
		alert("安全性考虑,密码不能小于六位!(或你输入的密码过长，系统无法接受!)");           
		theForm.pwd.focus();           
		return (false);           
	}

    if (theForm.verifycode.value == "")
  {
    alert("请输入验证序列！");
    theForm.verifycode.focus();
    return (false);
  }   
   
	if (theForm.verifycode.value.length!=6)
      {
        alert("验证序列应为6位数!");
        theForm.verifycode.focus();
        theForm.verifycode.select();
        return false;
      } 
return (true);
}
//-->