//存储会员名单--------start ------------------------------------------
	  //以XML求取数据   
	  //webFileUrl:要读取的页面地址,可带参数   
	  function XmlPost(webFileUrl)   
	  {   
	  var   result   =   "";   
	  var   xmlHttp   =   new   ActiveXObject("MSXML2.XMLHTTP");   
	  xmlHttp.open("POST",   webFileUrl,   false);   
	  xmlHttp.send("get");   
	  result   =   xmlHttp.responseText;   
	  return(result);   
	  }
 //存储会员名单---------------- end --------------------------------	
   	function check_userName(value)
    {
		//验证登录名
   	 var filter=/^\s*[A-Za-z0-9]{6,20}\s*$/;
	 if(!filter.test(value))
	   { 
		 if(value.replace(/\s+/g,"")!="")
		 {
 		document.all("zhu").innerText="温馨提示：会员登录名填写不正确,请重新填写！可使用的字符为（A-Z a-z 0-9）长度不小于6个字符，不超过20个字符，注意不要使用空格。"; 
		document.all("zhu").style.display='';
		document.form.user.focus();
		document.form.user.select();
		return false; 
 		}
	  }
	   else
	  {
	var ii;
	var ishave=false;
	
	//判断用户名是否被注册
	userInt=parseInt(XmlPost("checkuser.asp?action=username&send="+value));
	if(userInt==0)
	{
		ishave=true;
	}
	else
	{
		ishave=false;
	}
	if(ishave==false)
	{
	//--------------------------------------------	 
	   var ee;
	   var isee=false;
		  for(ee=0;ee<deny.length;ee++) 
		  {
			if(deny[ee][0]==value) 
		   {
			isee=true ;	
		   }
		  }
 		if(isee==false)
		 {
		 	document.all("zhu").style.display="none";
		 }else
		 {
 		  	document.all("zhu").innerText="温馨提示：对不起！该会员登录名填写不正确！请另换一个试试！ "; 
			document.all("zhu").style.display='';
			document.form.user.focus();
			document.form.user.select();
			return false; 
		 }
	//------------------------------------------
		    
		 }
	   else
	    {
			 document.all("zhu").innerText="温馨提示：对不起！该会员登录名已经存在！请另换一个试试！ "; 
			 document.all("zhu").style.display='';
			 document.form.user.focus();
			 document.form.user.select();
			 return false; 
	     }
       }
 	 }
	 
	 function check_pass(value)
	 {
	 //验证密码
	   var filter=/^\s*[A-Za-z0-9]{6,20}\s*$/;
		if (!filter.test(value))
		 { 
		  if(value.replace(/\s+/g,"")!="")
		   {
			document.all("passdiv").innerText="温馨提示：登录密码填写不正确,请重新填写！可使用的字符为（A-Z a-z 0-9）长度不小于6个字符，不超过20个字符，注意不要使用空格。"; 
			document.all("passdiv").style.display='';
			document.form.pass.focus();
			document.form.pass.select();
			return false; 
 		   }
 		}
		else
		{ 
	 	  document.all("passdiv").style.display='none';
  		 if(value!=document.form.confirmpassword.value)
		    {
			 if(document.form.confirmpassword.value.replace(/\s+/g,"")!="")
			 {
    	     	document.all("passtoodiv").innerText="温馨提示：对不起！您两次输入的密码不一致！"; 
				document.all("passtoodiv").style.display='';
 				return false; 	
			  }
    	    } 
			else
		   {
		 		document.all("passtoodiv").style.display='none';
 		   }
  		 }
 	 }
	 function check_passtoo(value)
	 {
	 //验证二次密码
	   var filter=/^\s*[A-Za-z0-9]{6,20}\s*$/;
		if (!filter.test(value))
		 { 
		 if(value.replace(/\s+/g,"")!="")
		 {
 		document.all("passtoodiv").innerText="温馨提示：确认密码填写不正确,请重新填写！可使用的字符为（A-Z a-z 0-9）长度不小于6个字符，不超过20个字符，注意不要使用空格。"; 
		document.all("passtoodiv").style.display='';
		document.form.confirmpassword.focus();
 		document.form.confirmpassword.select();
		return false; 
 		}
 		}else
		{
		   if(value!=document.form.pass.value)
		    {
			  if(document.form.pass.value.replace(/\s+/g,"")=="")
			  {
			    document.all("passtoodiv").innerText="温馨提示：对不起！您还没有输入登录密码！"; 
				document.all("passtoodiv").style.display='';
				document.form.pass.focus();
				document.form.pass.select();
				return false; 
			  }
			  else
			  {
				document.all("passtoodiv").innerText="温馨提示：对不起！您两次输入的密码不一致！"; 
				document.all("passtoodiv").style.display='';
 				return false; 			  
 			  }
 	        }
	 	 document.all("passtoodiv").style.display='none';
 		}
 	 }
	  
	 
  function check_email(value)
	 {//验证Email地址
	   var filter=/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/;
	   if(value!="")
	   {
 		if (!filter.test(value))
		   { 	 
			document.all("emaildiv").innerText="温馨提示：对不起！您输入电子邮箱地址格式不正确，请检查！"; 
			document.all("emaildiv").style.display='';
			document.form.email.focus();
			document.form.email.select();
			return false;  
	       }
		   else
		   {
		   
			var iie;
			var ishavee=false;
			//判断用户名是否被注册
			EmailInt=parseInt(XmlPost("checkuser.asp?action=email&send="+value));
			if(EmailInt==0)
			{
				ishavee=true;
			}
			else
			{
				ishavee=false;
			}
			   if(ishavee==false)
				 {
					document.all("emaildiv").style.display='none';
				 }
			   else 
			   {
					document.all("emaildiv").innerText="温馨提示：对不起！您输入的此电子邮箱地址已经存在被人使用，请换用另一个Email地址 ！"; 
					document.all("emaildiv").style.display='';
					document.form.email.focus();
					document.form.email.select();
					return false;  
			   }
			   
		   }
	     }
		 else
		 {
 		document.all("emaildiv").style.display='none';
 		 }
	 }
  function check_msn(value)
	 {//验证MSN地址
	   var filter=/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/;
	   if(value.replace(/\s+/g,"")!="")
	    {
 		if (!filter.test(value))
		   { 	 
			document.all("msndiv").innerText="温馨提示：对不起！您输入MSN帐号格式不正确，请检查！如果没有MSN帐号，请留空！"; 
			document.all("msndiv").style.display='';
			document.form.msn.focus();
			document.form.msn.select();
			return false;  
	       }
		   else
		   {
			document.all("msndiv").style.display='none';
 		   }
	    }
		else
		{
  		document.all("msndiv").style.display='none';
 		}
	 }	 

 
	 function check_comname(value)//验证公司名称
	 {
  	 if(value.replace(/\s+/g,"")!="")
	  {
 	   var iic;
	   var ishavec=false;
		qymcInt=parseInt(XmlPost("checkuser.asp?action=qymc&send="+value));
			if(qymcInt==0)
			{
				ishavec=true;
			}
			else
			{
				ishavec=false;
			}
	  if(ishavec==false)
		 {
		    document.all("comdiv").style.display="none";
 		 }
	   else
	    {
		     document.all("comdiv").innerText="温馨提示：您输入的贵公司名称已经被使用!请输入与之不同的公司名称！"; 
  			 document.all("comdiv").style.display='';
			 document.form.qymc.focus();
			 document.form.qymc.select();
 			 return false; 
	     }
	   }
	}
	
	function check_content(value)//验证公司简介信息
	{
	 if(value.replace(/\s+/g,"")!="")
	 {
 	  if((value.replace(/\s+/g,"")).length<50||(value.replace(/\s+/g,"")).length>2000)
		{
	      document.all("contentdiv").style.color='red';
 		  document.all("contentdiv").innerText="温馨提示：对不起！您输入的字数不符合要求！公司简介的字数应大于50，小于2000!"; 
	      document.form.qyjj.focus();
	      document.form.qyjj.select();
 		  return false;
	    }
		else
		 {
		     document.all("contentdiv").style.color='#8F8F8F';
 			 document.all("contentdiv").innerText="经济全球化的时代，谁的企业声誉高，谁就是商界的强者!请认真填写公司简介，让客户有信任感，而不是虚假性信息，使公司形象受到影响！从现在开始树立企业的良好声誉！此处禁止填写联系人、电话、传真、地址、网址、email等信息。不要使用广告词或夸大性的语句，不要加图片及Html代码。   "; 
		 }
  	  }
   	}

  function checkcontent() //提交时统一验证内容不能为空
   {
   	 if((document.all("zhu").style.display!="none") || (document.all("emaildiv").style.display!="none") || (document.all("comdiv").style.display!="none")|| (document.all("msndiv").style.display!="none")|| (document.all("passdiv").style.display!="none")|| (document.all("passtoodiv").style.display!="none") )
	 {
	 alert("对不起！您所填写的信息中有误！请检查输入正确的信息!");
	 return false;
    }
	 
      if(document.all("yzmb").style.display!="none")
	{
     if(document.form.Verifycode.value.replace(/\s+/g,"")=="")
	  {
	   alert("请输入验证码！");
	   document.form.Verifycode.focus();
	   return false;
	  }
	 }
	if(document.all("mainkindb").style.display!="none")
   	{
	 if(document.form.topCatFormKeyValue.value=="")
	 {
	 	alert("请选择行业类别");
		return false;
	 }
	}
	 if(document.form.user.value.replace(/\s+/g,"")=="")
	 {
	  alert("请输入会员登录名！");
	  document.form.user.focus();
	  return false;
	 }
	 if(document.form.pass.value.replace(/\s+/g,"")=="")
	 {
	  alert("请输入登录密码！");
	  document.form.pass.focus();
	  return false;
	 }
	 if(document.form.confirmpassword.value.replace(/\s+/g,"")=="")
	  {
	   alert("请输入确认密码！");
	   document.form.confirmpassword.focus();
	   return false;
	  }
	  if(document.all("quesb").style.display!="none")
	  {
   	  if(document.form.question.options.selectedIndex==0)
	 {
	 alert("请选择密码提示问题！");
     document.form.question.focus();
	 return  false;
	 }	
	 } 
	  if(document.all("ansb").style.display!="none")
	  {
   	  if(document.form.answer.value.replace(/\s+/g,"")=="")
	 {
	 alert("请输入密码提示答案！");
     document.form.answer.focus();
	 return  false;
	 }	
	 }
	  if(document.all("usertrueb").style.display!="none")
	  {
	 if(document.form.name.value.replace(/\s+/g,"")=="")
	  {
	   alert("请输入真实姓名！");
	   document.form.name.focus();
	   return false;
	  }   
	  }
 	 if(document.form.email.value.replace(/\s+/g,"")=="")
	  {
	   alert("请输入电子邮箱地址！");
	   document.form.email.focus();
	   return false;
 	  }
	  if(document.all("tmb").style.display!="none")
	  {
	  if(document.form.tm.value.replace(/\s+/g,"")=="")
	  {
	   alert("请输入即时通讯TM号！");
	   document.form.tm.focus();
	   return false;
	  }   
	  } 
 	  if(document.all("msnb").style.display!="none")
	  {
	  if(document.form.msn.value.replace(/\s+/g,"")=="")
	  {
	   alert("请输入MSN帐号！");
	   document.form.msn.focus();
	   return false;
	  }   
	  } 
 	  if(document.all("telb").style.display!="none")
	  { 	  
	 if(document.form.phonecountry.value.replace(/\s+/g,"")=="")
	  {
	   alert("请输入国家区号！");
	   document.form.phonecountry.focus();
	   return false;
	  } 	
	 if(document.form.phonearea.value.replace(/\s+/g,"")=="")
	  {
	   alert("请输入城市区号！");
	   document.form.phonearea.focus();
	   return false;
	  }	  
     if(document.form.phonenumber.value.replace(/\s+/g,"")=="")
	  {
	   alert("请输入号码！");
	   document.form.phonenumber.focus();
	   return false;
	  }
	   }
	   if(document.all("comaddrb").style.display!="none")
	   {
	 if(document.form.country1.options.selectedIndex==0)
	  {
		if(document.form.province.options.selectedIndex==0)
		{
		alert("请你选择公司所在地的所在省市或地区 !");
		  document.form.province.focus();
		return false;
		}
		if(document.form.city.options.selectedIndex==0)
		{
		alert("请你选择公司所在地的所在城市！");
		  document.form.city.focus();
		return false;
		}
	  }  
	  }
	   if(document.all("streetb").style.display!="none")
	   {
 	 if(document.form.address.value.replace(/\s+/g,"")=="")
	  {
	   alert("请输入街道地址！");
	   document.form.address.focus();
	   return false;
	  }
	  }
 	  
	  if(document.all("faxb").style.display!="none")
	  { 	  
	 if(document.form.faxcountry.value.replace(/\s+/g,"")=="")
	  {
	   alert("请输入传真的国家区号！");
	   document.form.faxcountry.focus();
	   return false;
	  } 	
	 if(document.form.faxarea.value.replace(/\s+/g,"")=="")
	  {
	   alert("请输入传真的城市区号！");
	   document.form.faxarea.focus();
	   return false;
	  }	  
     if(document.form.faxnumber.value.replace(/\s+/g,"")=="")
	  {
	   alert("请输入传真的号码！");
	   document.form.faxnumber.focus();
	   return false;
	  }
	  }
	  
	  if(document.all("mobileb").style.display!="none")
	  { 	  
	 if(document.form.mobile.value.replace(/\s+/g,"")=="")
	  {
	   alert("请输入手机号码！");
	   document.form.mobile.focus();
	   return false;
	  } 	  
	  }
	  
	  if(document.all("postb").style.display!="none")
	  { 	  
	 if(document.form.post.value.replace(/\s+/g,"")=="")
	  {
	   alert("请输入邮政编码！");
	   document.form.post.focus();
	   return false;
	  } 	  
	  }
 	 if(document.form.qymc.value.replace(/\s+/g,"")=="")
	 {
	  alert("请输入贵公司名称！");
	  document.form.qymc.focus();
	  return false;
	 }	  	
	  if(document.all("workb").style.display!="none")
	  { 	  
	 if(document.form.zw.value.replace(/\s+/g,"")=="")
	  {
	   alert("请输入您的职位！");
	   document.form.zw.focus();
	   return false;
	  } 	  
	  }	 
    if(document.all("mainkindb").style.display!="none")
   {
	if(document.form.p_z_Z_RootCategory.options.selectedIndex==0)
	 {
	 alert("请选择主营行业大类！");
     document.form.p_z_Z_RootCategory.focus();
	 return  false;
	 }	
	}
	
	var str=document.form.productionService.value;
   if(document.all("mainprob").style.display!="none")
   {	
	if(str.replace(/\s+/g,"")=="")
	 {
	 alert("请填写主营产品/服务！");
	 document.form.productionService.focus();
	 return false;
	 }	 
 	}
	 if(document.all("moshib").style.display!="none")
   {	
	  var  check=true;
      for(var i=0;i<document.form.qylb.length;i++)
	  {
 	 if (document.form.qylb[i].checked) 
	 {
		 check=false;
		break;
        }	
       }
	 if (check)
	 {
          alert("请选择经营模式！");
          document.form.qylb[0].focus();
          return (false);
       }  
  	}
	
    var contents=document.form.qyjj.value;
	 if(document.all("comdesb").style.display!="none")
   {	
    if((contents.replace(/\s+/g,"")).length<50||(contents.replace(/\s+/g,"")).length>2000)
	 {
	 alert("请输入公司简介内容!");
	 document.form.qyjj.focus();
 	 return false;
 	 }
	 }
	 

	 
   }