<!--#include file="main.asp" -->
<!--#include file="Include/md5.asp" -->
<!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/global.css" rel="stylesheet" type="text/css" />
<link href="css/index.css" rel="stylesheet" type="text/css" />

<script language="JavaScript">
<!--
function checkdata() {
if( isNumberString(thisForm.username.value,"1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_")!=1 || thisForm.username.value.length<4 || thisForm.username.value.length>16) {
alert("\用户注册出错，下面是产生错误的可能原因：\n\n·用户名必须是4-16位的数字、英文或下划线")
return false;
}
if( thisForm.Password.value =="" || thisForm.Password.value.length<4 || thisForm.Password.value.length>16) {
alert("\用户注册出错，下面是产生错误的可能原因：\n\n·请输入 4-16 位的密码")
return false;
}
if( thisForm.Password1.value =="" || thisForm.Password1.value.length<4 || thisForm.Password1.value.length>16) {
alert("\用户注册出错，下面是产生错误的可能原因：\n\n·请输入您的确认密码")
return false;
}
if( thisForm.Password.value != thisForm.Password1.value ) {
alert("\用户注册出错，下面是产生错误的可能原因：\n\n·密码与确认密码不一致，请重新输入")
return false;
}
if( thisForm.coname.value =="" || thisForm.coname.value=="") {
alert("\用户注册出错，下面是产生错误的可能原因：\n\n·网站名称不能为空!")
return false;
}
if( thisForm.realname.value =="" || thisForm.realname.value=="") {
alert("\用户注册出错，下面是产生错误的可能原因：\n\n·姓名不能为空!")
return false;
}
if( thisForm.Email.value =="" || thisForm.Email.value=="") {
alert("\用户注册出错，下面是产生错误的可能原因：\n\n·E_mail不能为空!")
return false;
}

if( thisForm.addone_id.value =="" || thisForm.addone_id.value=="") {
alert("\用户注册出错，下面是产生错误的可能原因：\n\n·地区不能为空!")
return false;
}
if( thisForm.addtwo_id.value =="" || thisForm.addtwo_id.value=="") {
alert("\用户注册出错，下面是产生错误的可能原因：\n\n·区域不能为空!")
return false;
}


return true;
}
function isNumberString (InString,RefString)
{
if(InString.length==0) return (false);
for (Count=0; Count < InString.length; Count++)  {
	TempChar= InString.substring (Count, Count+1);
	if (RefString.indexOf (TempChar, 0)==-1)  
	return (false);
}
return (true);
}
// -->
</script>
<style type="text/css">
<!--
.STYLE1 {color: #999999}
-->
</style>
</head>
<body background="images/bj.gif">
<!--#include file="top.asp" -->
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="7"></td>
  </tr>
</table>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><FORM method=post name=thisForm action="server.asp"  onSubmit="return checkdata()">
        <br>
        <TABLE width=80% border=0 align="center" cellPadding=6 cellSpacing=0 borderColor=#111111 
      style="BORDER-COLLAPSE: collapse">
          <TBODY>

            <TR> 
              <TD width=17% height=13 align=right><span class="STYLE1">用 户 名：</span></TD>
              <TD height=13 align=left><input name=username class=fieldalp id="username" size=16 
            maxlength=20> 
                <font 
            color=#624b35>注:4-16位;只限数字(0-9)和英文(a-z)</font></TD>
            </TR>
            <TR> 
              <TD width=17% height=25 align=right><span class="STYLE1">密　　码：</span></TD>
              <TD width=83% height=25 align=left><INPUT name=Password type=password 
            class=fieldalp id="Password" size=16 maxLength=20>
                <FONT color=#FF6600>(密码至少4位，不要与用户名相同，更不能使用银行卡取款密码。) </FONT></TD>
            </TR>
            <TR> 
              <TD width=17% height=0 align=right><span class="STYLE1">密码确认：</span></TD>
              <TD width=83% height=12 align=left><INPUT name=Password1 type=password class=fieldalp id="Password1" size=16 
            maxLength=20> 
              <FONT 
            color=#624b35>(请再次输入密码。) </FONT></TD>
            </TR>
            <TR> 
              <TD width=17% height=0 align=right><font color="#999999">真实姓名：</font></TD>
              <TD height=13 align=left><font color="#999999">
                <input name="realname" type="text" class="fieldalp" id="realname" size="20" 
            maxlength="20" />
              </font><font 
            color="#624b35">(便于博客发布及商业合作) </font></TD>
            </TR>
            

            <TR>
              <TD height=12 align=right><span class="STYLE1">个人主页名称:</span></TD>
              <TD height=12 align=left><input name="coname" type="text" id="coname" size="20">
              <font 
            color="#624b35">(给您的个人空间起个名) </font></TD>
            </TR>
            <TR> 
              <TD width=17% height=12 align=right><span class="STYLE1">电子邮件：</span></TD>
              <TD width=83% height=12 align=left><input name=Email 
            class=fieldalp id="Email" size=24 maxlength=60 />
              <FONT 
            color=#624b35>(请准确填写您的<FONT face=Verdana 
            style="FONT-SIZE: 11px">E-MAIL</FONT>地址，以方便联系) </FONT></TD>
            </TR>
			              <TR>
              <TD height=12 align=right><span class="STYLE1">所属地区：</span></TD>
              <TD height=12 align=left><%sql = "select *  from ypaddtwo order by date desc"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1%>
            <script language = "JavaScript">
var onecount1;
onecount1=0;
subcat1 = new Array();
<%count = 0
do while not rs.eof%>
subcat1[<%=count%>] = new Array("<%= trim(rs("addtwo"))%>","<%= trim(rs("addone_id"))%>","<%= trim(rs("addtwo_id"))%>");
        <%count = count + 1
        rs.movenext
        loop
        rs.close
        set rs=nothing%>
onecount1=<%=count%>;

function changelocation1(addone)
    {
    document.thisForm.addtwo_id.length = 0; 

    var addone_id=addone_id;
    var i;
    document.thisForm.addtwo_id.options[0] = new Option('请选择地区(市)','');
    for (i=0;i < onecount1; i++)
        {
            if (subcat1[i][1] == addone)
            { 
                document.thisForm.addtwo_id.options[document.thisForm.addtwo_id.length] = new Option(subcat1[i][0], subcat1[i][2]);
            }        
        }
        
    }
      </script>
	  <select name="addone_id" onChange="changelocation1(document.thisForm.addone_id.options[document.thisForm.addone_id.selectedIndex].value)">
		         <%
sql="select *  from ypaddone where addone_id=16 order by date desc"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1
while not rs.eof%>
              <option value="<%=rs("addone_id")%>" selected><%=rs("addone")%></option>
              <%rs.movenext
wend
rs.Close()
%>
             
              <%
sql="select *  from ypaddone where addone_id<>16 order by date desc"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1
while not rs.eof%>
              <option value="<%=rs("addone_id")%>"><%=rs("addone")%></option>
              <%rs.movenext
wend
rs.Close()
%>
            </select>
              <select name="addtwo_id">
                <option selected value="">请选择地区(市)</option>
				  <%
sql="select *  from ypaddtwo where addone_id=16 order by date desc"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1
while not rs.eof%>
              <option value="<%=rs("addtwo_id")%>"><%=rs("addtwo")%></option>
              <%rs.movenext
wend
rs.Close()
%>
            </select></TD>
            </TR>          
            <TR align="center"  valign="bottom"> 
              <TD height=56 colSpan=2> <input name=Step2  style="FONT-FAMILY: 宋体; FONT-SIZE: 12px; HEIGHT: 30px" type=submit value=" 保存并进入下一步">              </TD>
            </TR>
          </TBODY>
        </TABLE>
      </form></td>
  </tr>
</table>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="7">
<DIV class=row>
<DIV class=col>
<P>同城交友: <%set rs=server.createobject("adodb.recordset")
sql="select * from ypaddone"
rs.open sql,conn,1,1
do while not rs.eof%>
<A href="yp.asp?id=<%=rs("addone_id")%>" target=_blank><%=rs("addone")%></A>
<%
rs.movenext
loop
rs.close%></P></DIV></DIV></td>
  </tr>
</table>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="7"></td>
  </tr>
</table>
<!--#include file="bottom.asp" -->
</body>
</html>
