<!--#include file="inc_top.asp" -->
<table width="762" bgcolor="#ffffff" align="center" cellpadding="0" cellspacing="0" >
  <tr>
    <td height="300" valign="top"> 
      <%
huiyuan = Request("huiyuan")

If huiyuan = ""  Then
Response.Write "<br><br><font color=#ff6666>会员账号必须填写。</font>"
Response.End
End If

set rs = Server.CreateObject("ADODB.Connection")
sql = "Select * From huiyuan Where huiyuan = '"&huiyuan&"'"
set rs = conn.Execute(sql)
If Not rs.EOF Then
Response.write "<script>alert(""您填写的用户名已经有人使用了,请重新选择！"");window.history.go(-1);</script>"
Response.End
End If
rs.close
set rs=nothing
%>
      <form action=zhuce-3.asp method=post name=mainform id="formSignUp">
       <script language="JavaScript" src="/conn/CitySel.js">InitCitySelect(document.AddUserForm.Province,document.AddUserForm.City);</script>
 <script language="javascript">
	<!--//
	function checksignup() {
		if ( document.formSignUp.password.value == '' ) {
			window.alert('请输入会员密码!!');
			document.formSignUp.password.focus();
			return false;
		}
		if ( document.formSignUp.password2.value == '' ) {
			window.alert('请输入确认密码!!');
			document.formSignUp.password2.focus();
			return false;
		}
		if ( document.formSignUp.password2.value != document.formSignUp.password.value) {
			window.alert('您两次输入的密码不相同，请重新输入！!');
			document.formSignUp.password2.focus();
			return false;
		}
		if ( document.formSignUp.name.value == '' ) {
			window.alert('请输入您的真实姓名!!');
			document.formSignUp.name.focus();
			return false;
		}
		if ( document.formSignUp.yb.value == '' ) {
			window.alert('请输入联系人邮政编码!!');
			document.formSignUp.yb.focus();
			return false;
		}
            if(isNaN(document.formSignUp.yb.value)||( document.formSignUp.yb.value.length!=6)) {
			window.alert('邮政编码必须为6位数字！');
			document.formSignUp.yb.focus();
			return false;
		}
		if ( document.formSignUp.tel.value == '' ) {
			window.alert('请输入联系人电话!!');
			document.formSignUp.tel.focus();
			return false;
		}
		if(isNaN(document.formSignUp.tel.value)||(document.formSignUp.tel.value.length<7)) {
		window.alert("请输入您的有效电话号码,只能是7位以上的数字!!");
		document.formSignUp.tel.focus();
		return false;
	}
           if ( document.formSignUp.mail.value.length> 0 &&!document.formSignUp.mail.value.indexOf("@")==-1|document.formSignUp.mail.value.indexOf(".")==-1 ) {
			window.alert('请输入您正确的Email地址!!');
			document.formSignUp.mail.focus();
			return false;
		}
		if ( document.formSignUp.dz.value == '' ) {
			window.alert('请输入联系地址!!');
			document.formSignUp.dz.focus();
			return false;
		}
		if ( document.formSignUp.dz.value.length<5) {
			window.alert('请输入详细的联系地址!!');
			document.formSignUp.dz.focus();
			return false;
		}

		return true;
	}

	//-->
	</script>
        <table width="80%" align="center" cellpadding="0" cellspacing="0">
          <tr valign="middle"> 
            <td align="center"><br>请您务必详细填写您的信息，并核对无误； 国内用户请留下您的真实中文姓名。<br>未经您的允许，我们将只用于处理您的订货信息，对外保密。 (带<font color="#FF3333">＊</font>号为必填项)
	</td>
	</tr>
          <tr valign="middle"> 
            <td align="center"><font color="#FF3333"><br>&gt;&gt;&nbsp;填写个人资料&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></td>
          </tr>
        </table>
        <table width="570" align="center" cellpadding="2" cellspacing="0">
          <tr valign="middle"> 
            <td width="50" rowspan="11" align="right">&nbsp;</td>
            <td width="120" height="25" align="right">会员账号：</td>
            <td width="400" height="25"><font color="#FF3333"><% = Request("huiyuan") %></font></td>
          </tr>
          <tr valign="middle"> 
            <td width="120" height="25" align="right">密码：</td>
            <td width="400" height="25"> <input name="password" type="password" class="wenbenkuang" id="password" size="20" maxlength="16" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''"> 
              <font color="#FF3333">＊</font></td>
          </tr>
          <tr valign="middle"> 
            <td width="120" height="25" align="right">确认密码：</td>
            <td width="400" height="25"> <input name="password2" type="password" class="wenbenkuang" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" id="password2" size="20" maxlength="16"> 
              <font color="#FF3333">＊</font></td>
          </tr>
          <tr valign="middle"> 
            <td width="120" height="25" align="right">您的真实姓名：</td>
            <td width="400" height="25"> <input name="name" type="text" class="wenbenkuang" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" id="name" size="12" maxlength="10"> 
              <font color="#FF3333">＊</font></td>
          </tr>
          <tr valign="middle"> 
            <td width="120" height="25" align="right">姓别：</td>
            <td width="400" height="25"> <input name="xb" type="radio" value="男" checked onFocus="this.blur()">
              男 
              <input type="radio" name="xb" value="女" onFocus="this.blur()">
              女</td>
          </tr>
          <tr valign="middle"> 
            <td width="120" height="25" align="right">邮编：</td>
            <td width="400" height="25"> <input name="yb" type="text" class="wenbenkuang" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" id="yb" size="12" maxlength="6"> 
              <font color="#FF3333">＊</font></td>
          </tr>
          <tr valign="middle"> 
            <td width="120" height="25" align="right">联系电话：</td>
            <td width="400" height="25"> <input name="tel" type="text" class="wenbenkuang" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" id="tel" size="20" maxlength="20"> 
              <font color="#FF3333">＊ </font>注：区号与电话号码之间无须&quot;-&quot;或&quot;()&quot;链接</td>
          </tr>
          <tr valign="middle"> 
            <td width="120" height="25" align="right">E-mail：</td>
            <td width="400" height="25"> <input name="mail" type="text" class="wenbenkuang" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" id="mail" size="30" maxlength="40">
            <font color="#FF3333">＊ <font color="#666666">必填</font> </font></td>
          </tr>
          <tr valign="middle"> 
            <td width="120" height="25" align="right">收货(通讯)地址：</td>
            <td width="400" height="25"> <input name="dz" type="text" class="wenbenkuang" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" id="dz" size="42" maxlength="150"> 
              <font color="#FF3333">＊</font></td>
          </tr>
          <tr valign="middle"> 
            <td width="120" height="25" align="right">&nbsp;</td>
            <td width="400" height="25"> <input name="Submit" type="submit" class="go-wenbenkuang" ONCLICK="javascript:return checksignup()" value="提交" onFocus="this.blur()"> 
              <input name="Submit2" type="reset" class="go-wenbenkuang" value="重置" onFocus="this.blur()"> 
              <input name="huiyuan" type="hidden" id="huiyuan" value="<% = Request("huiyuan") %>"></td>
          </tr>
        </table>
      </form></td>
  </tr>
</table>
<!--#include file="inc_end.asp" -->