<script language="javascript">
	function CheckForm()
	{
		if(!checkLength("UserName" , "用户名称" , 3 , 16 , "~!@#$%^&*+=\\\'\"\<\>"))
			return false;
		if(!checkLength("PassWord" , "登录密码" , 6 , 16 , "&<>\'"))
			return false;
		if(!checkLength("PassWord2" , "确认密码" , 6 , 16 , "&<>\'"))
			return false;
		if(RegForm.PassWord.value.toLowerCase() != RegForm.PassWord2.value.toLowerCase())
		{
			alert("输入的密码和确认密码不一致");
			return false;
		}
		
		if(!checkLength("RealName" , "真实姓名" , 1 , 20))
			return false;
		if(!checkLength("Age" , "年龄" , 1))
			return false;
		if(!checkInteger("Age" , "年龄" , 1 , "*"))
			return false;
		if(!checkLength("Nation" , "民族" , 0 , 100))
			return false;
		if(RegForm.Political.value == "")
		{
			alert("请选择政治面貌");
			return false;
		}
		if(!checkLength("Nation" , "民族" , 1 , 10))
			return false;
		if(!checkLength("Birthplace" , "籍贯" , 1 , 20))
			return false;
		if(RegForm.Marriage.value == "")
		{
			alert("请选择婚姻状况");
			return false;
		}
		if(RegForm.Qualification.value == "")
		{
			alert("请选择学历");
			return false;
		}
		if(!checkInteger("Standing" , "身高" , 1 , "*"))
			return false;
		if(!checkInteger("Weight" , "体重" , 1 , "*"))
			return false;
		if(!checkLength("Salary" , "要求月薪" , 1 , 5))
			return false;
		if(!checkInteger("Salary" , "要求月薪" , 0 , 100000))
			return false;
		if(RegForm.Nature.value == "")
		{
			alert("请选择工作性质");
			return false;
		}
		if(RegForm.Position_b.value == "")
		{
			alert("请选择工作职能");
			return false;
		}
		if(RegForm.Position_s.value == "")
		{
			alert("请选择工作职位");
			return false;
		}
		if(!checkLength("JobPost" , "求职意向岗位" , 1 , 100))
			return false;
		if(RegForm.Province.value == "")
		{
			alert("请选择工作地区");
			return false;
		}
		if(RegForm.City.value == "")
		{
			alert("请选择工作地区");
			return false;
		}
		if(!checkLength("NowAddr" , "现在所在地" , 1 , 100))
			return false;
		if(!checkLength("HomeAddr" , "家庭地址" , 1 , 100))
			return false;
		if(!checkLength("QQ" , "QQ" , 0 , 20))
			return false;
		if(!checkInteger("QQ" , "QQ" , 10000 , "*"))
			return false;
		if(!checkLength("MSN" , "MSN" , 0 , 100))
			return false;
		if(!checkEmail("MSN" , "MSN"))
			return false;
		if(!checkLength("Tel" , "联系电话" , 1 , 100))
			return false;
		if(RegForm.Agree.checked == false)
		{
			alert("要注册成为会员，必须同意用户服务协议");
			return false;
		}
		return true;
	}
	
	function CheckUser()
	{
		if(!checkLength("UserName" , "用户名称" , 3 , 16 , "~!@#$%^&*+=\\\'\"\<\>"))
			return false;
		window.showModalDialog("Person_CheckUser.asp?UserName=" + RegForm.UserName.value ,"Person_CheckUser","");
	}
</script>

<script language="javascript">
	function CheckForm()
	{
		if(!checkLength("UserName" , "用户名称" , 3 , 16 , "~!@#$%^&*+=\\\'\"\<\>"))
			return false;
		if(!checkLength("PassWord" , "登录密码" , 6 , 16 , "&<>\'"))
			return false;
		if(!checkLength("PassWord2" , "确认密码" , 6 , 16 , "&<>\'"))
			return false;
		if(RegForm.PassWord.value.toLowerCase() != RegForm.PassWord2.value.toLowerCase())
		{
			alert("输入的密码和确认密码不一致");
			return false;
		}
		
		if(!checkLength("CompanyName" , "公司名称" , 1 , 100))
			return false;
		if(RegForm.CompanyIndustry.value == "")
		{
			alert("请选择所属行业");
			return false;
		}
		if(RegForm.CompanyNature.value == "")
		{
			alert("请选择公司性质");
			return false;
		}
		if(!checkLength("CompanyFormation" , "成立时间" , 1 , 20))
			return false;
		if(!checkLength("RegFunds" , "注册资金" , 1 , 20))
			return false;
		if(!checkFloat("RegFunds" , "注册资金" , 1 , 10000000000))
			return false;
		if(RegForm.EmployeeNum.value == "")
		{
			alert("请选择员工人数");
			return false;
		}
		if(RegForm.Province.value == "")
		{
			alert("请选择公司所在地");
			return false;
		}
		if(RegForm.City.value == "")
		{
			alert("请选择公司所在地");
			return false;
		}
		
		if(!checkLength("CompanyContent" , "公司简介" , 1 , 5000))
			return false;
		if(!checkLength("Contact" , "联系人" , 1 , 100))
			return false;
		if(!checkLength("Tel" , "联系电话" , 1 , 100))
			return false;
		if(!checkLength("Mobile" , "手机号码" , 0 , 100))
			return false;
		if(!checkLength("Fax" , "传真号码" , 0 , 100))
			return false;
		if(!checkLength("QQ" , "QQ" , 0 , 20))
			return false;
		if(!checkInteger("QQ" , "QQ" , 10000 , "*"))
			return false;
		if(!checkLength("CompanyAddr" , "通讯地址" , 1 , 100))
			return false;
		if(!checkLength("Postcode" , "邮政编码" , 1 , 6))
			return false;
		if(RegForm.Agree.checked == false)
		{
			alert("要注册成为会员，必须同意用户服务协议");
			return false;
		}
		return true;
	}
	
	function CheckUser()
	{
		if(!checkLength("UserName" , "用户名称" , 3 , 16 , "~!@#$%^&*+=\\\'\"\<\>"))
			return false;
		window.showModalDialog("Company_CheckUser.asp?UserName=" + RegForm.UserName.value ,"Company_CheckUser","");
	}
</script>
