<!--#include file="Common/Inc_DatConn.asp"-->
<!--#include file="Common/Inc_Function.asp"-->
<%
		if UCase(Request.Form("Oper")) = "REGMEMBER" then
			Dim strMember
			Dim rdsMember
			Dim sqlMember
			Dim strMembers
			Dim intMemberType
				
			strMember =changechr(Request.Form("Member"))
			intMemberType = Request.Form("MemberType")
				
			set rdsMember = Server.CreateObject("ADODB.Recordset")
			sqlMember = "Select * From Dat_Member Where Member = '"& strMember &"'"
			rdsMember.Open sqlMember,Conn
			if not rdsMember.EOF then
				Response.Write"<SCRIPT language=JavaScript>alert('此会员帐号已被他人注册，请重新注册！');"
				Response.Write"window.location.href='javascript:history.go(-1);'</SCRIPT>"
			else
				Session("strMembers") = strMember
				Session("intMemberType") = intMemberType
				
				if intMemberType = 1 then
					Response.Redirect "Register_Info.asp"
				else
					Response.Redirect "Register_Info2.asp"
				end if
			end if
			rdsMember.Close
			set rdsMember = nothing		
		else
		%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><% =strSiteName%> - 会员注册</title>
<meta name="Keywords" content="重庆信息网" />
<meta name="Description" content="重庆信息网" />
<link href="imger/css.css" type="text/css" rel="stylesheet">
</head>
<body>
<!--#include file="head.asp"-->
<table width="778" border="0" align="center" cellpadding="0" cellspacing="10" bgcolor="f2f2f2">
  <tr>
    <td width="26%" valign="top"><table width="100%" border="0" cellpadding="9" cellspacing="1" bgcolor="#e6e6e6">
      <tr>
        <td bgcolor="#FFFFFF"><iframe name="login" width="172" height="110" src="common/inc_login.asp" scrolling="no" align="middle" border="0" frameborder="0" marginwidth="1" marginheight="1" target="_top">
				浏览器不支持嵌入式框架，或被配置为不显示嵌入式框架。</iframe></td>
      </tr>
    </table>
    </td>
    <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#e6e6e6">
      <tr>
        <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="10" cellpadding="0">
          <tr>
            <td height="24" background="imger/09.gif"><span class="STYLE6">≡</span> <span class="STYLE2"><b>您的位置：</b></span></td>
          </tr>
          <tr>
            <td><table cellSpacing="1" cellPadding="0" width="100%" bgColor="#a8d70c" border="0">
              <tr>
                <td bgColor="#ffffff"><table cellSpacing="0" cellPadding="0" width="100%" bordercolordark="#FFFFFF" borderColorLight="#3986CE" border="0">
                    <tbody>
                      <tr>
                        <td vAlign="top" width="100%" align="center"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                              <td valign="top" width="100%" align="center"><br>
                                  <script language="javascript">
			//检验表单的合法性
			function CheckIfEnglish(String)
			{ 
			    var Letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890_";
			     var i;
			     var c;
			     for( i = 0; i < String.length; i ++ )
			     {
			          c = String.charAt( i );
				  if (Letters.indexOf( c ) < 0)
				     return false;
			     }
			     return true;
			}
			function RegMemberForm() {
				if (document.RegMember.Member.value == "") {
					alert("\请设定一个会员帐号，以便登陆本站！");
					document.RegMember.Member.focus();
				}
				else if (!CheckIfEnglish(document.RegMember.Member.value)) {
					alert("\输入的会员帐号不符合规范！");
					document.RegMember.Member.focus();
				}
				else if ((document.RegMember.Member.value).length<4) {
					alert("\会员帐号至少4位！");
					document.RegMember.Member.focus();
				}
				else {
			        return true;
			    }
			    return false;
			}
			  </script>
                                  <table border="0" width="90%" cellspacing="1" cellpadding="0">
          <form method="post" action="Register_Member.asp" name="RegMember" OnSubmit="return RegMemberForm()">
          <input type="hidden" name="Oper" value="RegMember">          
            <tr>
              <td width="14%" height="25" bgcolor="#B5D7D6" align="right">帐 号：</td>
              <td width="86%" height="25" bgcolor="#E7EFEF">&nbsp;<input type="text" name="Member" size="15" maxlength="15" class="face" <%if is_ot_user=1 then%> value="<%=Session("strMembers")%>" readonly<%end if%>>&nbsp;[帐号4--15位，可由字母、数字、下划线组成。</td>
            </tr>
            <tr>
              <td width="14%" height="25" bgcolor="#B5D7D6" align="right">会员类型：</td>
              <td width="86%" height="25" bgcolor="#E7EFEF">&nbsp;<input type="radio" name="MemberType" value="1" checked>&nbsp;个人会员&nbsp;&nbsp;&nbsp;<input type="radio" name="MemberType" value="2">&nbsp;企业会员&nbsp; 
				<font color="#2969AD">(注册会员&nbsp; 免费开店)</font></td>
            </tr>
            <tr>
              <td height="30" bgcolor="#B5D7D6" align="right"></td>
              <td height="30" bgcolor="#E7EFEF">&nbsp;<input type="submit" name="Submit" value="下一步" class="button"></td>
            </tr>
          </form>
          </table>
                                <br>
                              </td>
                            </tr>
                        </table></td>
                      </tr>
                    </tbody>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table>      </td>
  </tr>
</table><div align="center">
	<table border="0" style="border-collapse: collapse" width="760">
		<tr>
			<td background="images/2005_soft_mainbg.gif" height="7"></td>
		</tr>	</table>
</div><%end  if%>
<!--结束-->
<!--#include file="boot.asp"-->
</body>
</html>
