<!--#include file="conn.asp"-->
<%call yanzheng()  '检测用户名%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>输入注册信息</title>
<link href="css/comm.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/comm.js"></script>
<script language="javascript">
function form1_onsubmit() 
{
	if(getId("password1").value.length < 4)
	{
		alert("您的密码过短，请检查！");
		return false;
	}
	if(getId("name").value=="")
	{
		alert("请填写您的姓名！");
		return false;
	}
	if(getId("usephone").value.length <=7 || getId("usephone").value.length >=15)
	{
		alert("请输入正确的联系电话！");
		return false;
	}
}
</script>
</head>

<body>
<div class="bodyDiv">
	<!--#include file="model_top.asp"-->
	
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="86" height="36" align="center" bgcolor="FF8601"><img src="images/2car_40.jpg" width="78" height="28" alt=""></td>
        <td width="162" bgcolor="FF8601" style="font-size:14px; color: #FFFFFF;	font-weight: bold;">登录莆田二手车网</td>
        <td width="43"><img src="images/2car_36.jpg" width="43" height="36" alt=""></td>
        <td valign="bottom" background="images/2car_38.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="4%" height="15"><img src="images/site.gif" width="14" height="13" /></td>
            <td width="96%" valign="bottom">当前位置：会员注册 / 第二步：输入注册信息</td>
          </tr>
          <tr>
            <td height=8 colspan="2"></td>
          </tr>
        </table></td>
      </tr>
	<tr>
    <td height="4" colspan="4" bgcolor="F0F0F0"></td>
  </tr>
</table>
	
  <table width="100%" height="190" border="0" cellpadding="0" cellspacing="0" style="background-image:url(images/chemo.jpg); background-repeat:no-repeat;background-position:top;">
      <tr>
        <td width="61%" valign="top">
		<table width="483" height="412" border="0" align="right" cellpadding="0" cellspacing="0">
		<form name="form1" id="form1" method="post" action="reg3_3.asp" onSubmit="return form1_onsubmit()">
          <tr>
            <td height="77" valign="bottom"><img src="images/2008010612153.gif" width="422" height="36" /></td>
          </tr>
          <tr>
            <td height="23"><img src="images/Snap45.jpg" width="468" height="6" /></td>
          </tr>
          <tr>
            <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="3">
              <tr>
                <td width="21%" align="right"><font color="#FF0000">*</font>用&nbsp;户&nbsp;名：</td>
                <td width="79%"><input name="memberID" type="text" class="textbgbor" id="textfield" size="20" value="<%=request.form("memberID")%>" readonly="readonly" /></td>
              </tr>
              <tr>
                <td align="right"><font color="#FF0000">*</font>您的姓名：</td>
                <td><input name="name" type="text" class="textbgbor" id="name" size="20" /></td>
              </tr>
              <tr>
                <td align="right"><font color="#FF0000">*</font>您的性别：</td>
                <td><input name="sex" type="radio" id="radio" value="男" checked="checked" />
                  男
                    <input type="radio" name="sex" id="radio2" value="女" />
                    女</td>
              </tr>
              <tr>
                <td align="right"><font color="#FF0000">*</font>输入密码：</td>
                <td><input type="password" name="password1" id="password1" class="textbgbor" /></td>
              </tr>
              <tr>
                <td align="right"><font color="#FF0000">*</font>密码确定：</td>
                <td><input type="password" name="Password2" id="Password2" class="textbgbor" /></td>
              </tr>
              <tr>
                <td align="right">密码提示问题：</td>
                <td><select name="question">
                                  <option value="" selected="selected">请选择密码问题</option>
                                  <option value="您最喜欢的运动员的名字">您最喜欢的运动员的名字</option>
                                  <option value="您的幸运数字是多少">您的幸运数字是多少</option>
                                  <option value="您的宠物的名字是">您的宠物的名字是</option>
                                  <option value="您的启蒙老师叫什么">您的启蒙老师叫什么</option>
                                  <option value="您最喜欢的鸟类是什么">您最喜欢的鸟类是什么</option>
                                  <option value="您最喜欢吃的一道菜是">您最喜欢吃的一道菜是</option>
                                  <option value="您最喜欢的一部电影是">您最喜欢的一部电影是</option>
                                  <option value="您最钟爱的一本书是什么">您最钟爱的一本书是什么</option>
                                  <option value="您少年时心目中的英雄是谁">您少年时心目中的英雄是谁</option>
                                  <option value="您收过的最令你感动的礼物是">您收过的最令你感动的礼物是</option>
                                </select></td>
              </tr>
              <tr>
                <td align="right">密码提示答案：</td>
                <td><input name="answer" type="text" class="textbgbor" id="answer" size="30" /></td>
              </tr>
              <tr>
                <td align="right"><font color="#FF0000">*</font>电子邮件：</td>
                <td><input name="email" type="text" class="textbgbor" id="email" size="20" /></td>
              </tr>
              <tr>
                <td align="right"><font color="#FF0000">*</font>联系电话：</td>
                <td><input name="usephone" type="text" class="textbgbor" id="usephone" size="20" /></td>
              </tr>
              <tr>
                <td align="right">联系地址：</td>
                <td><input name="address" type="text" class="textbgbor" id="address" size="35" /></td>
              </tr>
              <tr>
                <td align="right">邮政编码：</td>
                <td><input name="code" type="text" class="textbgbor" id="code" size="20" /></td>
              </tr>
              <tr>
                <td align="right">　</td>
                <td><input type="image" src="images/200801061239.jpg" name="button" id="button" value="提交" onfocus="this.blur()" /></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="47">　</td>
            </tr>
		  </form>
        </table></td>
        <td width="39%" valign="top">
          <div align="left" style="height:180px;"></div>
		  <div style="border-left:solid 1px #A6BCC9; margin-left:10px;">
		    <table width="100%" border="0" cellspacing="0" cellpadding="5">
              <tr>
                <td colspan="3" style="font-size:14px; font-weight:bold;">在这里您可以知道：</td>
              </tr>
              <tr>
                <td width="22%" align="right"><img src="images/Snap47.gif" width="12" height="12" /></td>
                <td colspan="2" style="font-size:14px;">如何买？</td>
              </tr>
              <tr>
                <td align="right"><img src="images/Snap47.gif" width="12" height="12" /></td>
                <td colspan="2" style="font-size:14px;"> 如何卖？</td>
              </tr>
              <tr>
                <td align="right"><img src="images/Snap47.gif" width="12" height="12" /></td>
                <td colspan="2" style="font-size:14px;">交易必读</td>
              </tr>
              <tr>
                <td>　</td>
                <td width="45%">　</td>
                <td width="33%">　</td>
              </tr>
            </table>
		    <table width="100%" height="98" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td align="center"><img src="images/Snap48.jpg" width="163" height="79" border="0" usemap="#Map" /></td>
              </tr>
            </table>
		  </div></td>
      </tr>
    </table>
<!--#include file="model_bottom.asp"-->
</div>

<map name="Map" id="Map"><area shape="rect" coords="3,37,160,75" href="login_2.asp" />
</map></body>
</html>
<%
'==========================================================================================
'功能：验证是否监测过用户名
function yanzheng()
	dim t1
	t1 = trim(request.form("memberID"))
	
	if t1 = "" then call wrong("用户名不能为空")
	if len(t1) <= 2 then call wrong("用户名必须大于3个字符！")
	if len(t1) >= 16 then call wrong("用户名不能超过16个字符！")
	if left(t1,1)=" " or instr(left(t1,1),"1234567890")>0 then call wrong("用户名第一个字母不能为空格或数字！")
	
	rs.open "select id from member where memberID='"& t1 &"'",conn,1,1

	if not rs.eof then
		wrong("该会员号已存在，请选择别的会员号!")
	end if
	rs.close
end function
%>