<!--#include file="usertop.asp"-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>注册会员--<%=title%>--<%=web%></title>
</head>
<% if CInt(Request.QueryString("Action")) <> 1 then %>

<%
server_v1=Cstr(Request.ServerVariables("HTTP_REFERER"))
server_v2=Cstr(Request.ServerVariables("SERVER_NAME"))
if mid(server_v1,8,len(server_v2))<>server_v2 then
response.write "<br><br><center><table border=1 cellpadding=20 class=table2 width=450>"
response.write "<tr><td style=font:9pt Verdana>"
response.write "<center>您需要接受本站协议才可以注册会员!<br><br><br>[<a href='reg.asp' style='text-decoration: none'><font color='red'>返回注册协议页</font></a>]</center>"
response.write "</td></tr></table></center>"
response.end
end if
%>
<%else%>
<body>
<%dim tjrname,tjrname1
tjrname=Request("username")
If tjrname<>"" Then 
Response.cookies("fox")("tjrname")=tjrname
end if
tjrname1=request.cookies("fox")("tjrname")%>
<div align="center">
<script language="JavaScript">
  function isDigit(c)
{
    if(c.length > 1){
        return false;
    }
    ic = c - '0';
    return ic >= 0 && ic <= 9;
}
function checkinput(){
	if(form_fox.username.value == ""){
            alert("请输入会员登陆名！");
            form_fox.username.focus();
            return false;
        }else if(isDigit(form_fox.username.value.charAt(0))){
	    alert("会员名不能以数字开头！");
	    form_fox.username.focus();
	    form_fox.username.select();
	    return false;
        }
	if(form_fox.password.value == ""){
            alert("请输入密码！");
            form_fox.password.focus();
            return false;
        }  
	if(form_fox.password.value.length<6 || form_fox.password.value.length>15 ){
            alert("密码长度应该在6－15个字符之间！");
            form_fox.password.focus();
            return false;
        }     
	if(form_fox.password.value != form_fox.password1.value){
            alert("密码和确认密码不符！");
            form_fox.password1.value = "";
            form_fox.password.focus();
            return false;
        }   
            if(form_fox.lxrname.value == ""){
            alert("请输入您真实姓名！");
            form_fox.lxrname.focus();
            return false;
        } 
　　　　　　if(form_fox.usertel.value == ""){
            alert("请输入联系电话！");
            form_fox.usertel.focus();
            return false;
        } 
			if(form_fox.sheng.value == "0" || form_fox.sheng.value == ""){
            alert("请选择省份！");
            form_fox.sheng.focus();
            return false;
        } 
			if(form_fox.shi.value == "0" || form_fox.shi.value == ""){
            alert("请选择城市！");
            form_fox.shi.focus();
            return false;
        } 
			if(form_fox.xiang.value == "0" || form_fox.xiang.value == ""){
            alert("请选择县区！");
            form_fox.xiang.focus();
            return false;
        } 
			if(form_fox.dizhi.value == ""){
            alert("请输入通讯地址！");
            form_fox.dizhi.focus();
            return false;
        } 
		　　if(form_fox.code.value == ""){
            alert("请输入邮编！");
            form_fox.code.focus();
            return false;
        } 
　　　　　　if(form_fox.verifycode.value == ""){
            alert("请输入随机验证码！");
            form_fox.verifycode.focus();
            return false;
        } 
	if(form_fox.email.value == ""){
            alert("请输入您有效的电子邮件,方便我们能联系到您！");
            form_fox.email.focus();
            return false;
        }
    return true;
}  
function isEmail(strEmail) {
 if (strEmail.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
  return true;
 else
  alert("请输入您有效的电子邮件,方便我们能联系到您！");
}
</script>
<table cellSpacing="0" cellPadding="0" width="760" border="0" id="table1">
		<tr>
			<td  height="25" colspan="2" class="tdtop"><b>&nbsp; 您的位置  
			<font color="#FFFFFF">-></font> <a class="scap1" href="index.htm"><%=title%></a>
			<font color="#FFFFFF">-></font> 注册会员：</b></td>
		</tr>
		<tr bgColor="#d9ebe5">
			<td  width="244" bgcolor="#FFFFFF" rowspan="15" valign="top">
			<table border="1" width="100%" id="table2" bordercolorlight="#D9EBE5" cellpadding="0" bordercolordark="#D9EBE5" style="border-collapse: collapse">
				<tr>
					<td bgcolor="#D9EBE5"><b>
					<img border="0" src="images/a01.gif" width="25" height="25">会员类型说明：</b></td>
				</tr>
				<tr>
					<td class="tdtxt06">●[<font color="#FF3300"><b><%=aname%>会员</b></font>]<br>
&nbsp; 可以发布信息，但须本站审核，信息有效期由本站审核设置。
					<br>　但不能发布图片信息，无网上店铺。
					<br>
&nbsp; 注册时无须审核。<br>
&nbsp; 会员有效期：<font color="#FF0000"><%=dqsja%></font>天。</td>
				</tr>
				<tr>
					<td class="tdtxt06">●[<font color="#FF3300"><b><%=bname%>会员</b></font>]<br>
&nbsp; 可以发布信息，每次<font color="#FF0000"><%=hxb%></font><%=bname%>，发布信息无须本站审核，信息有效期扣除<%=bname%>。
					<br>　能发布图片信息，每次扣除<font color="#FF0000"><%=tdxb%></font><%=bname%>。
					<br>  &nbsp;  网上店铺凭<font color="#FF0000"><%=ddxb%></font><%=bname%>申请，由本店审核后才能开通。<br>
&nbsp; 注册时会员资格须本站审核。 <br>
&nbsp; 有效期：<font color="#FF0000"><%=dxb%></font><%=bname%>用完止。</td>
				</tr>
				<tr>
					<td class="tdtxt06">●[<font color="#FF3300"><b><%=cname%>会员</b></font>]<br>
&nbsp; 可以发布信息，发布信息无须本站审核，信息有效期自主设定。
					<br>　发布图片信息无限制，拥有个人网上店铺。<br>
&nbsp; 为高级用户，可以审核本站信息及商品信息。<br>
&nbsp; 注册时会员资格须本站审核。 <br>
&nbsp; 会员有效期：<font color="#FF0000"><%=dqsjc%></font>天。</td>
				</tr>
				<tr>
					<td class="tdtxt06">●<font color="#FF3300"><b><%=cname%>会员</b></font>及<font color="#FF3300"><b><%=bname%>会员</b></font>在本站未审核前享受<font color="#FF3300"><b><%=aname%>会员</b></font>权利，本站审核并确认后方可享受相应权利。</td>
				</tr>
			</table>
			</td>
			<td valign="top">
			<table border="0" width="100%" id="table3" cellpadding="4">
			<%dim username
username=request.cookies("fox")("username")
if username<>"" then
	Response.Write"<div align='center'><table cellSpacing='0' cellPadding='0' width='100%' border='0' id='table2'><tr><td align='middle' width=600 class='p9t'><br><br><li>您已经注册过了，不要重复注册！[<a href='userhome.asp' style='text-decoration: none'><font color='red'>返回会员中心</font></a>]<br><br><br><br></td></tr></table></div>"
response.end
else%>
	<form name="form_fox" onsubmit="return checkinput()" method="post" action="regchk.asp">
<tr>
<td>
			<p align="right"><b>注册会员类型：</b></td>
			<td  bgcolor="#FFFFFF" width="385">您选择的是：“<font color=red id="huiTypeSel"><%=aname%>会员</font>”</td>
		</tr>
		<!-- color5-->
		<tr bgColor="#f3faf3">
			<td align="right" bgcolor="#D9EBE5">　<b>注册登陆名：</b> </td>
			<td width="385">
			<input id="topic" maxLength="20" size="14" name="username" class="button01"> 
			* <input onclick="javascript:picWin=window.open('reg_checkUserName.asp?username='+form.username.value,'','toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=200,height=30');" type="button" value="检测" name="preview" /> 
			数字或字母代号</td>
		</tr>
		<!-- color5-->
		<tr bgColor="#f3faf3">
			<td vAlign="top" align="right" bgcolor="#D9EBE5">
			<b>登陆密码:</b></td>
			<td vAlign="top" width="385">
    <input name="password" type="password" size="14" class="button01"> 
			*</td>
		</tr>
		<tr bgColor="#f3faf3">
			<td vAlign="top" align="right" bgcolor="#D9EBE5">
			<b>重复密码:</b></td>
			<td vAlign="top" width="385">
    <input name="password1" type="password" size="14" class="button01"> 
			*</td>
		</tr>
		<tr bgColor="#f3faf3">
			<td vAlign="top" align="right" bgcolor="#D9EBE5">
			　<b>选择会员类型：</b> </td>
			<td vAlign="top" width="385">
			<input onclick="document.all.huiTypeSel.innerText='<%=aname%>会员'" type="radio" value="0" name="huiType" checked> 
			<%=aname%>会员 
			<input onclick="document.all.huiTypeSel.innerText='<%=bname%>会员 （会员资格须本站审核）'" type="radio" value="1" name="huiType"> 
			<%=bname%>会员
			<input onclick="document.all.huiTypeSel.innerText='<%=cname%>会员 （会员资格须本站审核）'" type="radio" value="2" name="huiType"> 
			<%=cname%>会员 </td>
		</tr>
		<tr bgColor="#f3faf3">
			<td align="right" bgcolor="#D9EBE5"><b>
			真实姓名：</b></td>
			<td vAlign="top" width="385">
			<input id="topic0" maxLength="4" size="14" name="lxrname" class="button01"> 
			* 请如实填写（中文，先生/女士也可），<font color="#FF0000">否则删</font></td>
		</tr>
		<tr bgColor="#f3faf3">
			<td align="right" bgcolor="#D9EBE5"><b>
			联系电话：</b></td>
			<td vAlign="top" width="385">
			<input id="topic1" maxLength="30" size="14" name="usertel" class="button01"> 
			*</td>
		</tr>
		<tr bgColor="#f3faf3">
			<td align="right" bgcolor="#D9EBE5"><b>
			常用手机：</b></td>
			<td vAlign="top" width="385">
			<input id="topic2" maxLength="12" size="14" name="phone" class="button01"></td>
		</tr>
		<tr bgColor="#f3faf3">
			<td align="right" bgcolor="#D9EBE5"><b>常用QQ：</b></td>
			<td vAlign="top" width="385">
			<input id="topic6" maxLength="12" size="14" name="qq" class="button01"></td>
		</tr>
		<tr bgColor="#f3faf3">
			<td align="right" bgcolor="#D9EBE5"><b>
			联系邮箱：</b></td>
			<td vAlign="top" width="385">
			<input id="topic3" maxLength="30" size="23" onblur="isEmail(this.value)" name="email" class="button01"> 
			*</td>
		</tr>
		<tr bgColor="#f3faf3">
			<td align="right" bgcolor="#D9EBE5"><b>所属地区：</b></td>
			<td vAlign="top" width="385"><%
dim rs
dim sql
dim count,count2,count3
set rs=server.createobject("adodb.recordset")
sql = "select * from FOX_shi order by paixu desc"
rs.open sql,conn,1,1
%>
<script language = "JavaScript"> 
var onecount; 
onecount=0; 
subcat = new Array(); 
<% 
count = 0 
do while not rs.eof 
%> 
subcat[<%=count%>] = new Array("<%= trim(rs("shi"))%>","<%= trim(rs("sheng"))%>","<%= trim(rs("id"))%>"); 
<% 
count = count + 1 
rs.movenext 
loop 
rs.close 
set rs=nothing 
%> 
onecount=<%=count%>; 

function changelocation(locationid) 
{ 
document.form_fox.shi.length = 0; 

var locationid=locationid; 
var i; 
document.form_fox.shi.options[0] = new Option('=所属城市=',''); 
for (i=0;i < onecount; i++) 
{ 
if (subcat[i][1] == locationid) 
{ 
document.form_fox.shi.options[document.form_fox.shi.length] = new Option(subcat[i][0], subcat[i][2]); 
} 
} 

} 
</script> 
<%dim rs2,sql2
set rs2=server.createobject("adodb.recordset")
sql2 = "select * from FOX_xiang order by paixu desc"
rs2.open sql2,conn,1,1
%>
<script language = "JavaScript"> 
var onecount2; 
onecount2=0; 
subcat2 = new Array(); 
<% 
count2 = 0 
do while not rs2.eof 
%> 
subcat2[<%=count2%>] = new Array("<%= trim(rs2("xiang"))%>","<%= trim(rs2("shi"))%>","<%= trim(rs2("id"))%>"); 
<% 
count2 = count2 + 1 
rs2.movenext 
loop 
rs2.close 
set rs2=nothing 
%> 
onecount2=<%=count2%>; 

function changelocation2(xiangid) 
{ 
document.form_fox.xiang.length = 0; 

var xiangid=xiangid; 
var j; 
document.form_fox.xiang.options[0] = new Option('=所属区县=',''); 
for (j=0;j < onecount2; j++) 
{ 
if (subcat2[j][1] == xiangid) 
{ 
document.form_fox.xiang.options[document.form_fox.xiang.length] = new Option(subcat2[j][0], subcat2[j][2]); 
} 
} 

} 
</script> 

                     
<select name="sheng" onChange="changelocation(document.form_fox.sheng.options[document.form_fox.sheng.selectedIndex].value)" size="1" class="button01"> 
<option selected value="0">所属省份</option> 
<% 
dim rs1,sql1
set rs1=server.createobject("adodb.recordset")
sql1 = "select * from FOX_sheng order by paixu desc"
rs1.open sql1,conn,1,1
do while not rs1.eof 
%> 
<option value="<%=trim(rs1("id"))%>"><%=trim(rs1("sheng"))%></option> 

<% 
rs1.movenext 
loop 
rs1.close 
set rs1 = nothing 
%> 
</select><select name="shi" onChange="changelocation2(document.form_fox.shi.options[document.form_fox.shi.selectedIndex].value)" class="button01" size="1"> 
<option selected value="0">==所属城市==</option> 
</select>
</select><select name="xiang" size="1" class="button01"> 
<option selected value="0">==所属县区==</option> 
</select> <font color="#FF6600"></td>
		</tr>
		<tr bgColor="#f3faf3">
			<td align="right" bgcolor="#D9EBE5"><b>
			详细地址：</b></td>
			<td vAlign="top" width="385">
			<input id="topic4" maxLength="40" size="30" name="dizhi" class="button01"> 
			*</td>
		</tr>
		<tr bgColor="#f3faf3">
			<td align="right" bgcolor="#D9EBE5"><b>
			邮政编码：</b></td>
			<td vAlign="top" width="385">
			<input id="topic5" maxLength="6" size="6" name="code" class="button01"> 
			*</td>
		</tr>
		<tr bgColor="#f3faf3">
			<td align="right" bgcolor="#D9EBE5"><b>推荐人：</b></td>
			<td vAlign="top" width="385"><font color="#FF0000"><%=tjrname1%></font><input name="tjrname" type="hidden" value="<%=tjrname1%>"></td>
		</tr>
		<tr bgColor="#f3faf3">
			<td align="right" bgcolor="#D9EBE5"><b>注册验证码：</b></td>
			<td vAlign="top" width="385"><input name="verifycode" type="text" class="button01" size="6">
			请在附加码框输入 <img src="getcode.asp"></td>
		</tr>
		<tr bgColor="#f3faf3">
			<td align="right" bgcolor="#D9EBE5">　</td>
			<td vAlign="top" width="385">
			<input class="inputb" border="0" name="I1" type="submit" value="确认提交"></td>
		</tr>	</form>
		<%end if%>
			</table>
			</td>
			</tr>

</table>

</div>

</body><%end if%><!--#include file="userbottom.asp"-->