
<!--#include file=webhead.asp-->

<title><%=webname%>-会员注册</title>
<script type="text/javascript">

function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}


function checkform(){
 if(checkspace(document.form1.username.value)) {
    alert("用户名不能为空");
    form1.username.focus();
    return false;
  }
  if (form1.username.value.indexOf("%") != -1 || form1.username.value.indexOf("'") != -1 || form1.username.value.indexOf('"') != -1 || form1.username.value.indexOf("=") != -1 || form1.username.value.indexOf("<") != -1 || form1.username.value.indexOf(">") != -1) {
		alert("用户名中不能有%、'、=、<和>等非法字符！");
	    form1.username.focus();
		return false;
}
  if ( form1.username.value.length < 4 || form1.username.value.length > 20 ){
    alert("用户名长度在4-20个字符");
    form1.username.focus();
    return false;
  }
     if(checkspace(document.form1.password.value)) {
    alert("密码不能为空");
    form1.password.focus();
    return false;
  }
  if (form1.password.value.indexOf("%") != -1 || form1.password.value.indexOf("'") != -1 || form1.password.value.indexOf('"') != -1 || form1.password.value.indexOf("=") != -1 || form1.password.value.indexOf("<") != -1 || form1.password.value.indexOf(">") != -1) {
		alert("密码中不能有%、'、=、<和>等非法字符！");
	    form1.password.focus();
		return false;
}
  if ( form1.password.value.length < 6 || form1.password.value.length > 20 ){
    alert("密码长度在6-20个字符");
    form1.password.focus();
    return false;
  }
     if(checkspace(document.form1.repassword.value)) {
    alert("重复密码不能为空");
    form1.repassword.focus();
    return false;
  }
  if (form1.repassword.value.indexOf("%") != -1 || form1.repassword.value.indexOf("'") != -1 || form1.repassword.value.indexOf('"') != -1 || form1.repassword.value.indexOf("=") != -1 || form1.repassword.value.indexOf("<") != -1 || form1.repassword.value.indexOf(">") != -1) {
			alert("重复密码中不能有%、'、=、<和>等非法字符！");
	    form1.repassword.focus();
		return false;
}
  if ( form1.password.value != form1.repassword.value ) {
    alert("请重复密码和密码不一，请得新输入！");
    form1.repassword.focus();
    return false;
  }
  
         if(checkspace(document.form1.email.value)) {
    alert("电子邮箱不能为空");
    form1.email.focus();
    return false;
  }
  if (form1.email.value.indexOf("%") != -1 || form1.email.value.indexOf("'") != -1 || form1.email.value.indexOf('"') != -1 || form1.email.value.indexOf("=") != -1 || form1.email.value.indexOf("<") != -1 || form1.email.value.indexOf(">") != -1) {
			alert("电子邮箱中不能有%、'、=、<和>等非法字符！");
	    form1.email.focus();
		return false;
}


  if ( form1.email.value.length < 6 || form1.email.value.length > 30 ){
    alert("电子邮箱长度在6-30个字符");
    form1.email.focus();
    return false;
  }

if ( form1.email.value.indexOf(".") == -1 || form1.email.value.indexOf("@") == -1 ) {
		alert("电子邮件地址的格式不正确，请重新填写！");
	    form1.email.focus();
		return false;
}


    if(checkspace(document.form1.realname.value)) {
    alert("真实姓名不能为空");
    form1.realname.focus();
    return false;
  }
  if (form1.realname.value.indexOf("%") != -1 || form1.realname.value.indexOf("'") != -1 || form1.realname.value.indexOf('"') != -1 || form1.realname.value.indexOf("=") != -1 || form1.realname.value.indexOf("<") != -1 || form1.realname.value.indexOf(">") != -1) {
			alert("真实姓名中不能有%、'、=、<和>等非法字符！");
	    form1.realname.focus();
		return false;
}


  if ( form1.realname.value.length < 2 || form1.realname.value.length > 16 ){
    alert("真实姓名长度在2-16个字符");
    form1.realname.focus();
    return false;
  }
if ( form1.tel.value !="" ){
var ascii,i
    for ( i = 1 ; i <= form1.tel.value.length ; i++ ) {
        charaa =form1.tel.value.charAt(i-1);
        if  ( charaa != 0 && charaa != 1 && charaa != 2 && charaa != 3 && charaa != 4 && charaa != 5 && charaa != 6 && charaa != 7 && charaa != 8  && charaa != 9 && charaa != "-") {
        alert("电话号码格式错误");
        form1.tel.focus(); 
        		return false;
         }
  }
  
  if ( form1.tel.value.length < 5 || form1.tel.value.length > 15 ){
    alert("电话号码长度在5-15个字符");
    form1.tel.focus();
    return false;
  }
}
if ( form1.mobile.value !="" ) {
var asciii,ii
  if (form1.mobile.value.substring( 0,2 ) != "13" ){
    alert("手机号码格式错误");
    form1.mobile.focus();
    return false;
  }

    for ( ii = 1 ; ii <= form1.mobile.value.length ; ii++ ) {
        charaaa =form1.mobile.value.charAt(ii-1);
        if  ( charaaa != 0 && charaaa != 1 && charaaa != 2 && charaaa != 3 && charaaa != 4 && charaaa != 5 && charaaa != 6 && charaaa != 7 && charaaa != 8  && charaaa != 9 ) {
        alert("手机号码格式错误");
        form1.mobile.focus(); 
        		return false;
         }
  }
  if ( form1.mobile.value.length != 11 ){
    alert("手机号码长度在11个字符");
    form1.mobile.focus();
    return false;
  } 
  }
  if ( form1.fax.value !="" ) {
  var iii
    for ( iii = 1 ; iii <= form1.fax.value.length ; iii++ ) {
        charaaaa =form1.fax.value.charAt(iii-1);
        if  ( charaaa != 0 && charaaa != 1 && charaaa != 2 && charaaa != 3 && charaaa != 4 && charaaa != 5 && charaaa != 6 && charaaa != 7 && charaaa != 8  && charaaa != 9 && charaaa != "-") {
        alert("传真号码格式错误");
        form1.fax.focus(); 
        		return false;
         }
  }

  if ( form1.web.value !=""  &&  form1.web.value !="http://") {
  if ( form1.web.value.indexOf(".") == -1 ) {
		alert("公司网址格式错误！");
	    form1.web.focus();
		return false;
		}
		  if (form1.web.value.indexOf("%") != -1 || form1.web.value.indexOf("'") != -1 || form1.web.value.indexOf('"') != -1 || form1.web.value.indexOf("=") != -1 || form1.web.value.indexOf("<") != -1 || form1.web.value.indexOf(">") != -1) {
					alert("真实姓名中不能有%、'、=、<和>等非法字符！");
	    form1.web.focus();
		return false;
}
}
}
if ( form1.operation.value != "") {
		  if (form1.operation.value.indexOf("%") != -1 || form1.operation.value.indexOf("'") != -1 || form1.operation.value.indexOf('"') != -1 || form1.operation.value.indexOf("=") != -1 || form1.operation.value.indexOf("<") != -1 || form1.operation.value.indexOf(">") != -1) {

					alert("主要业务中不能有%、'、=、<和>等非法字符！");
	    form1.operation.focus();
		return false;
}
}
if ( form1.message.value !="") {
  			  if (form1.message.value.indexOf("%") != -1 || form1.message.value.indexOf("'") != -1 || form1.message.value.indexOf('"') != -1 || form1.message.value.indexOf("=") != -1 || form1.message.value.indexOf("<") != -1 || form1.message.value.indexOf(">") != -1) {

  	alert("公司简介中不能有<、>、,和'等非法字符！");
	    form1.message.focus();
		return false;
}
  if ( form1.message.value.length >300 ){
    alert("公司简介长度在300个字符内！");
    form1.message.focus();
    return false;
  }
  }
    }
</script>

</head>

<body>

<div align="center">
<div align="center">
	<table border="0" width="784" cellspacing="0" cellpadding="0" bordercolor="#000000" style="border-left-style: solid; border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px" >
		<tr>
			<td bgcolor="#E9E9E9" height=2></td>
				</tr>
		<tr>
			<td height=5></td>
				</tr>
		<tr>
			<td align="center">
<p align="center"><%if ad2451class=0 then%><a target="_blank" href="<%=ad2451url%>"><img  alt="<%=ad2451name%>" src="<%=ad2451%>"  border="0" width=777 height=123></a>
	<%else%>
													<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="777" height="123">
	<param name="movie" value="<%=ad2451%>">
	<param name="quality" value="High">
	<embed src="<%=ad2451%>" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="777" height="123"></object>

	<%end if%>
	
												
			
												</td>
				</tr>
		<tr>
			<td height=5></td>
				</tr>
		<tr>
			<td height=5></td>
				</tr>
			</table>
</div>

	<table border="0" width="784" cellpadding="0" style="border-collapse: collapse; border-left-style: solid; border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px" bordercolor="#000000">

	<tr>
		<td>
		<table border="0" width="782" id="table1" cellpadding="0" cellspacing="0"  >
	<tr><form name=form1 method="POST" action="savereg.asp" style="text-align: center" onSubmit="return checkform();">
		<td align="left" colspan="3" >
        <table border="0" width="100%" id="table9" cellspacing="0" cellpadding="0">
			<tr>
				<td height="8"></td>
			</tr>
			<tr>
				<td bgcolor="#F7F7F7">&nbsp;填写注册信息</td>
			</tr>
			<tr>
			<td bgcolor="#E9E9E9" height=2></td>
				</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td width="126" align="right"   height="28" >用 户 名：&nbsp;</td>
		<td width="218" align="left"   height="28" >
		<input name="username" size="30" maxlength=20 class="wenbenkuang" >
		<font color="#FF0000">*</font></td>
		<td  id='passport1' width="438">4-20 个字符 (包括大小写字母,数字) 注册后不可修改。</td>
	</tr>
	<tr>
		<td width="126" align="right"   height="28" >输入密码：&nbsp;</td>
		<td width="218" align="left" >
				<input  size="30" class="wenbenkuang" type="password" maxLength="20" name="password" ><font color="#FF0000"> *</font></td>
		<td  id='passport2' width="438">6-20 个字符。</td>
	</tr>
	<tr>
		<td width="126" align="right"   height="28" >重复密码：&nbsp;</td>
		<td width="218" align="left" >
				<input size="30" class="wenbenkuang" type="password" maxLength="20" name="repassword" ><font color="#FF0000"> *</font></td>
		<td  id='passport2' width="438">重复输入一次上面的密码。</td>
	</tr>
	<tr>
		<td width="126" align="right"   height="28" >电子邮件：&nbsp;</td>
		<td width="218" align="left" >
		<font color="#990000">
				<input  maxLength="40" size="30" class="wenbenkuang" name="email" ></font><font color="#FF0000"> *</font></td>
		<td  id='passport2' width="438">请正确填写您的常用电子邮件地址。</td>
	</tr>
	<tr>
		<td width="126" align="right"   height="28" >真实姓名：&nbsp;</td>
		<td width="218" align="left" >
              	<input size="30" class="wenbenkuang" maxLength="10" name="realname" ><font color="#FF0000"> *</font></td>
		<td  id='passport2' width="438">为了便于您的客户能及时联系到您，请您输入真实姓名
					。
            </td>
	</tr>
	<tr>
		<td width="126" align="right"   height="28" >　</td>
		<td width="218" align="left" >
		　</td>
		<td  id='passport2' width="438">　</td>
	</tr>
	<tr>
		<td width="126" align="right"   height="28" >会员类型：&nbsp;</td>
		<td width="218" align="left" >
					<p align="left">
					<select id="Select10" name="usersort">
					<option value="2">中介</option>
					<option value="3">个人</option>
					</select></td>
		<td   width="438" height="28">　</td>
	</tr>
	<tr>
		<td width="126" align="right"  height="28">公司名称：&nbsp;<font color="#FF6600">
		</font></td>
		<td width="218" align="left" >
		<input name="company"  maxlength=40 size="30" class="wenbenkuang"  ></td>
		<td  id='passport2' width="438">4-40 个字符 (包括大小写字母,中文,数字)，注册后不可修改</td>
	</tr>


          <tr> 
            <td  align="right"  width="126">性 &nbsp;&nbsp;&nbsp;别：&nbsp;<font color="#FF6600">
			</font></td>
            <td width="218" align="left" > <input type="radio" name="sex" value="0" id="sex1" checked class="input1"><label for="sex1"> 男</label> 
			<input type="radio" name="sex" value="1" id="sex2" class="input1"><label for="sex2"> 女</label></td>
            <td class="black13" width="438">　</td>
          </tr>
          <tr> 
            <td height="28" align="right"  width="126">
			公司地址：&nbsp;</td>
            <td  width="218" align="left"> 

				<input  size="30" class="wenbenkuang" maxLength="40" name="address" ></td>
            <td  id='passport14' width="438" > 
			4-40个字符。</td>
          </tr>
          <tr> 
            <td height="28" align="right"  width="126">
			电话号码：&nbsp; </td>
            <td  width="218" align="left"> 
			
				<input  size="30" class="wenbenkuang" maxLength="15" name="tel" ></td>
            <td  id='passport7' width="438" > 5-15 个字符(包括数字，- 
			区号间用-分开，如:0574-81061316&nbsp;)。</td>
          </tr>
          <tr> 
            <td height="28" align="right"  width="126">
			手机号码：&nbsp;</td>
            <td  width="218" align="left"> 
				
				<font color="#990000">
				<input  size="30" class="wenbenkuang" maxLength="11"  name="mobile" ></font></td>
            <td  id='passport8' width="438"> 11 个字符(限数字,以13开头)。</td>
          </tr>
          <tr> 
            <td height="28" align="right"  width="126">
			传真号码：&nbsp;</td>
            <td  width="218" align="left"> 
		
				<font color="#990000">
				<input  maxLength="15" size="30" class="wenbenkuang" name="fax" ></font></td>
            <td  id='passport9' width="438"> 5-15 个字符(包括数字，-)。</td>
          </tr>
          <tr> 
            <td height="28" align="right"  width="126">
			联系方式：&nbsp;</td>
            <td  width="218" align="left"> 
			
			<input id="Contract_QQ" type="radio" CHECKED value="qq" name="Contract"  class="input1"><label for="Contract_QQ">QQ</label>
	<input id="Contract_MSN" type="radio" value="msn" name="Contract"   class="input1"><label for="Contract_MSN">MSN</label> 
					<input class="wenbenkuang" maxLength="15" name="Contract2" size=16></td>
            <td  id='passport10' width="438"> 　</td>
          </tr>
          <tr> 
            <td height="28" align="right"  width="126">
			公司网址：&nbsp;</td>
            <td  width="218" align="left">
				<input  size="30" class="wenbenkuang" maxLength="30" name="web"  ></font></td>
            <td   id='passport11' width="438">
				　</td>
</tr>
          <tr> 
            <td height="28" align="right"  width="126">
			主要业务：&nbsp;</td>
            <td align="left" >

				<INPUT  size="30" class="wenbenkuang" maxLength=60 name="operation" > </td>
            <td  id='passport12' width="438">
				60个字符内</td>
</tr>
          <tr> 
            <td height="28" align="right"  width="126">
			公司简介： </td>
            <td colspan="2" >
			<table border="0" width="100%" cellspacing="0" cellpadding="0">
				<tr>
					<td width="310">
				<font color="#990000">
				<textarea  name="message" rows="6" cols="57"  class="wenbenkuang" ></textarea></font></td>
					<td id='passport13'>300个字符内</td>
				</tr>
			</table>
			</td>
</tr>
<tr>
  <td height="28" align="right" colspan="3">
	<p align="center"><FONT color=#cc0000><B><span style="font-size: 10.5pt"><input type="submit" value="看过并同意服务条款！进行注册" class="go-wenbenkuang" ></span></b></font></td>
</tr>
	
	
	
	
	<tr>
		<td colspan="3"><span class="title_1">
		<span style="font-weight: 400">阅读本站服务协议：</span></span><span style="text-align: center; width: 450">&nbsp;<span style="text-align: center; "><input type="checkbox" name="agree" value="on" checked id="agree" class="input1"></span><label for="agree">
		已仔细阅读并同意<%=webname%>使用协议</label> 
		</span></td>
	</tr>
	<tr>
		<td colspan="3"><%
		Set rs = Server.CreateObject("ADODB.Recordset")
rs.open "SELECT  tiaoyue from xingxi ",conn,1,1
		%>
<p align="center">
<textarea name="textarea2" cols="70" rows="9" readonly wrap="PHYSICAL"  class="wenbenkuang">欢迎阅读<%=webname%>服务条款协议(下称“本协议”)。
<%=rs("tiaoyue")%>
<%rs.close
set rs=nothing%>                  
				</textarea></td>
	</tr>
  </form>
  	<tr>
				<td align="right" colspan="3" >客服邮箱：<%=webemail%>
  &nbsp; 
		客服热线：<%=dianhua%></td>
	</tr>
	</table></td>
	</tr>
	</table>

	</div>
<!--#include file=webfoot.asp-->
</body>
</html> 
 