<!--#include file="pysjzx_conn.asp"-->
<!--#include file="../webconfig.asp"-->
<%dim action
action=request("action")
regsort=trim(replace(request("regsort"),"'",""))
%>
<html>
<head>
<title><%=webname%>-用户注册</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta content="<%=keyword%>" name="keywords">
<meta content="<%=description%>" name="description">
<LINK href="../css/style.css" rel=stylesheet type=text/css>
</head>
<!--#include file="webhead.asp"-->
<!--#include file="../md5.asp"-->
<script type="text/javascript">
var xmlHttp;
function createXMLHttpRequest() {
    if (window.ActiveXObject) {
        xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    } 
    else if (window.XMLHttpRequest) {
        xmlHttp = new XMLHttpRequest();
    }
}
function checkusername() {
    createXMLHttpRequest();
    xmlHttp.onreadystatechange = handleStateChange1;
    xmlHttp.open("GET", "check/username.asp?username="+formpub.username.value, true);
    xmlHttp.send(null);
    }
function handleStateChange1() {
    if(xmlHttp.readyState == 4) {
        if(xmlHttp.status == 200) {
         document.all['passport1'].innerHTML =xmlHttp.responseText;
       var a=xmlHttp.responseText;
 }
    }
}
function slo(tx){
document.all[tx].style.border='1px #ffffff solid';
document.all[tx].style.color='#848484';
document.all[tx].style.paddingLeft='8px';
document.all[tx].style.paddingRight='5px';
document.all[tx].style.backgroundColor='#ffffff';
}
function sl(tx){
  document.all[tx].style.border='1px #22ADCE solid';
  document.all[tx].style.color='#006982';
  document.all[tx].style.paddingLeft='8px';
  document.all[tx].style.paddingRight='5px';
  document.all[tx].style.backgroundColor='#EEFAFD';
  if(tx=='passport1'){
    document.all[tx].innerHTML = "可由英文数字组成,限6-20个字符 。注册后不可修改。";
  }
  }
  </script>

<script language=JavaScript>
<%dim i_1,j_1
	set rs_s=server.createobject("adodb.recordset")
	sql="select * from province order by shengorder"
	rs_s.open sql,conn,1,1
%>
	var selects=[];
	selects['0']=new Array(new Option('-请选择县-','0'));
<%
	for i=1 to rs_s.recordcount
%>
	selects['<%=rs_s("ShengNo")%>']=new Array(

new Option('-请选择县-','0'),
<%
	set rs_s1=server.createobject("adodb.recordset")
	sql="select * from city where shengid="&rs_s("id")&" order by shiorder"
	rs_s1.open sql,conn,1,1
	if rs_s1.recordcount>0 then 
	%>


	<%		for j=1 to rs_s1.recordcount
		if j=rs_s1.recordcount then 
%>
		new Option('<%=trim(rs_s1("shiname"))%>','<%=trim(rs_s1("shiNo"))%>'));
<%		else
%>
		new Option('<%=trim(rs_s1("shiname"))%>','<%=trim(rs_s1("shiNo"))%>'),
<%
		end if
		rs_s1.movenext
		next
	else 
%>
		new Option('','0'));
<%
	end if
	rs_s1.close
	set rs_s1=nothing
	rs_s.movenext
	next
rs_s.close
set rs_s=nothing
%>
	function chsel(){
		with (document.formpub){
			if(province.value) {
				city.options.length=0;
				for(var i=0;i<selects[province.value].length;i++){
					city.add(selects[province.value][i]);
				}
			}
		}
	}



</script>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div align="center">
          <%
          select case action

          case ""%>
			 <table border="1" width="780" style="border-collapse: collapse" bordercolor="#E4E4E4">
				<tr>
					<td width=200>　</td>
					<td><table cellSpacing="0" cellPadding="0" width="550" border="0">
				<tr>
					<td align="middle">

					<table cellSpacing="0" cellPadding="0" width="550" border="0">
						<tr>
							<td width="4">
							　</td>
							<td width="560">
							<table cellSpacing="0" cellPadding="0" width="397" border="0">
								<tr>
								
									<td width="382"></strong><table cellSpacing="0" cellPadding="0" width="500" border="0">
					<tr>
						<td background="../images/zhuce-0005.gif" style="font-size: 9pt">
						<img border="0" src="../images/zhuce-qr-01.gif" width="116" height="41"></td>
						<td background="../images/zhuce-0005.gif" style="font-size: 9pt">
						<img border="0" src="../images/zhuce-yh-02.gif" width="123" height="41"></td>
						<td background="../images/zhuce-0005.gif" style="font-size: 9pt">
						<img height="41" src="../images/zhuce-cg-02.gif" width="118" border="0"></td>
						<td align="right" background="../images/zhuce-0005.gif" style="font-size: 9pt">
						<p align="left">
						<img height="41" src="../images/zhuce-tx-02.gif" width="118" border="0"></td>
					</tr>
					<tr>
						<td colSpan="4" style="font-size: 9pt">
						<img height="14" src="../images/bg_reg.gif" width="552"></td>
					</tr>
				</table>
									</td>
								</tr>
							</table>
							</td>
						</tr>
					</table>

						<table height="200" cellSpacing="1" width="100%" border="0">
						  <form name="formpub" method="post" action="reg.asp?action=yes">
							<tr>
								<td height="30">
								<strong><font size="3">注册第一步：同意协意</font></strong></td>
							</tr>
							<tr>
								<td height="30" bgcolor="#FFFAE8">
								<p align="center"><strong>会员协意</strong></p>
								<p><%set rs8=server.createobject("adodb.recordset")
sql8="select ausgleich from help "
rs8.open sql8,conn,1,1
response.write rs8("ausgleich")
rs8.close
set rs8=nothing
%></td>
							</tr>
							<tr>
								<td align="middle" height="30" bgcolor="#FFFAE8">
								会员类型
								<input class="input1" id="regsort_individual" type="radio" CHECKED value="individual" name="regsort"><label for="regsort_individual">个人会员</label>
								<input class="input1" id="regsort_company" type="radio" value="company" name="regsort"><label for="regsort_company">企业会员</label></td>
							</tr>
							<tr>
								<td align="middle" height="30" bgcolor="#FFF2CD">
								<input id="btnJoin" type="submit" value="  同意协意,并进行注册  " name="btnJoin"></td>
							</tr>
						</table>
					</div>
					</td>
				</tr>
				</table></td>
				</tr>
				</table><%case "yes"%>
		<%if regsort="individual" then%>
		  <script type="text/javascript">
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
function checkform(){
 if(checkspace(document.formpub.username.value)) {
    alert("用户名不能为空");
    formpub.username.focus();
    return false;
  }
  if ( formpub.username.value.length < 6 || formpub.username.value.length > 20 ){
    alert("用户名长度在6-20个字符");
    formpub.username.focus();
    return false;
  }
  if (checkspace(document.formpub.userpassword.value)) {
    alert("密码不能为空");
    formpub.userpassword.focus();
    return false;
  }
  if ( formpub.userpassword.value.length < 6 || formpub.userpassword.value.length > 20 ){
    alert("密码长度在6-20个字符");
    formpub.userpassword.focus();
    return false;
  }
    if ( formpub.userpassword.value != formpub.repassword.value ) {
    alert("密码确认和密码不一，请得新输入！");
    formpub.repassword.focus();
    return false;
  }
    if(checkspace(document.formpub.answer.value)) {
    alert("问题提问不能为空");
    formpub.answer.focus();
    return false;
  }
    if(checkspace(document.formpub.email.value)) {
    alert("电子邮箱不能为空");
    formpub.email.focus();
    return false;
  }
if ( formpub.email.value.indexOf(".") == -1 || formpub.email.value.indexOf("@") == -1 ) {
		alert("电子邮件地址的格式不正确，请重新填写！");
	    formpub.email.focus();
		return false;
		
}

    }
</script>
				<table border="1" width="780" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#E4E4E4">
			<tr>
				<td width=200>　</td>
				<td>

          
          <table cellSpacing="0" cellPadding="0" width="550" border="0">
				<tr>
					<td  height="33">
					<table cellSpacing="0" cellPadding="0" width="550" border="0">
						<tr>
						
							<td width="566">
							<table cellSpacing="0" cellPadding="0" width="397" border="0">
								<tr>
									<td width="15">　</td>
									<td width="382"><table cellSpacing="0" cellPadding="0" width="500" border="0">
				<tr>
						<td background="../images/zhuce-0005.gif" style="font-size: 9pt">
						<img height="41" src="../images/zhuce-qr-02.gif" width="116"></td>
						<td background="../images/zhuce-0005.gif" style="font-size: 9pt">
						　</td>
						<td background="../images/zhuce-0005.gif" style="font-size: 9pt">
						<img height="41" src="../images/zhuce-yh-01.gif" width="123" border="0"></td>
						<td align="right" background="../images/zhuce-0005.gif" style="font-size: 9pt">
						<img height="41" src="../images/zhuce-cg-02.gif" width="118" border="0" align="left">
						<img height="41" src="../images/zhuce-tx-02.gif" width="118" border="0" align="left"></td>
					</tr>
					<tr>
						<td colSpan="4" style="font-size: 9pt">
						<img height="14" src="../images/bg_reg.gif" width="550"></td>
					</tr>
				</table>
									</td>
								</tr>
							</table>
							</td>
						</tr>
					</table>
					</td>
				</tr>
				<tr>
					<td align="middle">
					<div id="pnlFirst">
						<table cellSpacing="0" width="100%" border="1" bordercolor="#FFFFFF">
						        <form  name="formpub"  method=post action="reg.asp?action=save" onSubmit="return checkform();">
							<tr>
								<td align="middle" colSpan="2" height="30">
								<p align="left">
								<strong><font size="3">注册第二步：填写用户信息</font></strong>&nbsp; 
								</td>
							</tr>
							<tr bgColor="#fffae8">
								<td colSpan="2" height="25">【必填项】以下<font color="#FF0000" face="宋体">*</font>为必填项，请填写真实信息！</td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								<font face="宋体">用 户 名：</font> </td>
								<td>
								<table border="0" width="100%" cellspacing="0" cellpadding="0">
									<tr>
										<td width=170><font face="宋体">
								<input tabindex="1" name="username" onBlur="javaScript:checkusername();slo('passport1');" onFocus="return sl('passport1');" onpaste="this.value=this.value.replace(/\W/g,'')" onkeyup="this.value=this.value.replace(/[^\d\w]/g,'')" maxlength=20> <font color="#FF0000">*</font>&nbsp;</td>
										<td id='passport1'><font face="宋体">
										可由英文数字组成,限6-20个字符</td>
									</tr>
								</table>
								</td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								<font face="宋体">密&nbsp;&nbsp;&nbsp; 码：</font> </td>
								<td><font face="宋体">
								<input id="txtPassword" type="password" value name="userpassword" onpaste="this.value=this.value.replace(/\W/g,'')" onkeyup="this.value=this.value.replace(/[^\d\w]/g,'')" maxlength=20>
								<font color="#FF0000">*</font>&nbsp; 限6-20个字符</font></td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								<font face="宋体">密码确认：</font> </td>
								<td><font face="宋体">
								<input id="txtPassword1" type="password" value name="repassword" maxlength=20><font color="#FF0000"> 
								*&nbsp; </font>同上</font></td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								<font face="宋体">提示问题：</font> </td>
								<td><font face="宋体">
								<select  name="question">
								<option value="1" selected>我最爱的人的名字？</option>
								<option value="2">我最喜欢的物品的名称？</option>
								<option value="3">我最爱的电影名称？</option>
								<option value="4">中学的校名？</option>
								<option value="5">我最喜欢的歌曲？</option>
								<option value="6">我最喜欢的食物？</option>
								<option value="7">我的初恋日期？</option>
								<option value="8">我妈妈的生日？</option>
								</select> <font color="#FF0000">*</font>&nbsp;可以通过回答问题获取遗忘的密码</font></td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								<font face="宋体">问题答案：</font> </td>
								<td><font face="宋体">
								<input id="answer" style="WIDTH: 176px" name="answer">
								<font color="#FF0000">*</font>&nbsp;请牢记填写的答案</font></td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								<font face="宋体">电子邮件：</font> </td>
								<td><font face="宋体">
								<input id="txtEmail" style="WIDTH: 176px" name="email">
								<font color="#FF0000">*</font></font></td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								服务范围<font face="宋体">：</font></td>
								<td>
								<input class="input1" id="service_sort2" type="checkbox" value="1" name="service_sort2"><label for="service_sort2">二手车</label>
								<input class="input1" id="service_sort3" type="checkbox" value="1" name="service_sort3"><label for="service_sort3">租赁车</label><font face="宋体">
								<font color="#FF0000">*</font></font></td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" height="25" colspan="2">
								<p align="left">【选填项】以下为选填项，可不填,如果填写,请填写真实信息！</td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								真实姓名<font face="宋体">：</font></td>
								<td><font face="宋体">
								<input id="name" style="WIDTH: 176px" name="linkname"></font></td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								性&nbsp; &nbsp;&nbsp;别<font face="宋体">：</font></td>
								<td><font face="宋体">
								<select  name="sex">
								<option value="1" selected>男</option>
								<option value="2">女</option>
								<option value="3">保密</option>

								</select></font></td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								联系地址<font face="宋体">：</font></td>
								<td><font face="宋体">
								<input id="txtEmail0" style="WIDTH: 176px" name="address"></font></td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								会员类型<font face="宋体">：</font></td>
								<td>
		个人<input type=hidden name=sort value=1>会员</td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								会员级别<font face="宋体">：</font></td>
								<td>
		普通会员</td>
							</tr>
							<tr>
								<td align="middle" bgColor="#fff2cd" colSpan="2" height="30">
								<input id="btnFirst"  type="submit" value=" 提交并填写 " name="btnFirst">&nbsp; 
								<input onclick="javascript:history.go(-1)" type="button" value="返回上一页" name="Submit3"></td>
							</tr>
							</form>
						</table>
					</div>
					</td>
				</tr>
		
			</table>
            	</td>
			</tr>
			</table>
			<%end if%>
					<%if regsort="company" then%>  <script type="text/javascript">
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
function checkform(){
 if(checkspace(document.formpub.username.value)) {
    alert("用户名不能为空");
    formpub.username.focus();
    return false;
  }
  if ( formpub.username.value.length < 6 || formpub.username.value.length > 20 ){
    alert("用户名长度在6-20个字符");
    formpub.username.focus();
    return false;
  }
  if (checkspace(document.formpub.userpassword.value)) {
    alert("密码不能为空");
    formpub.userpassword.focus();
    return false;
  }
  if ( formpub.userpassword.value.length < 6 || formpub.userpassword.value.length > 20 ){
    alert("密码长度在6-20个字符");
    formpub.userpassword.focus();
    return false;
  }
    if ( formpub.userpassword.value != formpub.repassword.value ) {
    alert("密码确认和密码不一，请得新输入！");
    formpub.repassword.focus();
    return false;
  }
      if(checkspace(document.formpub.answer.value)) {
    alert("问题提问不能为空");
    formpub.answer.focus();
    return false;
  }
  if(checkspace(document.formpub.email.value)) {
    alert("电子邮箱不能为空");
    formpub.email.focus();
    return false;
  }
if ( formpub.email.value.indexOf(".") == -1 || formpub.email.value.indexOf("@") == -1 ) {
		alert("电子邮件地址的格式不正确，请重新填写！");
	    formpub.email.focus();
		return false;
}
  if (checkspace(document.formpub.company.value)) {
    alert("公司名称不能为空");
    formpub.company.focus();
    return false;
  }
    if (checkspace(document.formpub.company.value)) {
    alert("公司名称不能为空");
    formpub.company.focus();
    return false;
  }
  
       if (checkspace(document.formpub.linkname.value)) {
    alert("联系人不能为空");
    formpub.linkname.focus();
    return false;
  }
       if (checkspace(document.formpub.address.value)) {
    alert("详细地址不能为空");
    formpub.address.focus();
    return false;
  }
      if (checkspace(document.formpub.tel.value)) {
    alert("联系电话不能为空");
    formpub.tel.focus();
    return false;
  }
      if (checkspace(document.formpub.info.value)) {
    alert("简介不能为空");
    formpub.info.focus();
    return false;
  }
    }
</script>
			<table border="1" width="780" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#E4E4E4">
			<tr>
				<td width=200>　</td>
				<td>

          
          <table cellSpacing="0" cellPadding="0" width="550" border="0">
				<tr>
					<td  height="33">
					<table cellSpacing="0" cellPadding="0" width="550" border="0">
						<tr>
						
							<td width="566">
							<table cellSpacing="0" cellPadding="0" width="397" border="0">
								<tr>
									<td width="15">　</td>
									<td width="382"><table cellSpacing="0" cellPadding="0" width="500" border="0">
				<tr>
						<td background="../images/zhuce-0005.gif" style="font-size: 9pt">
						<img height="41" src="../images/zhuce-qr-02.gif" width="116"></td>
						<td background="../images/zhuce-0005.gif" style="font-size: 9pt">
						　</td>
						<td background="../images/zhuce-0005.gif" style="font-size: 9pt">
						<img height="41" src="../images/zhuce-yh-01.gif" width="123" border="0"></td>
						<td align="right" background="../images/zhuce-0005.gif" style="font-size: 9pt">
						<img height="41" src="../images/zhuce-cg-02.gif" width="118" border="0" align="left">
						<img height="41" src="../images/zhuce-tx-02.gif" width="118" border="0" align="left"></td>
					</tr>
					<tr>
						<td colSpan="4" style="font-size: 9pt">
						<img height="14" src="../images/bg_reg.gif" width="550"></td>
					</tr>
				</table>
									</td>
								</tr>
							</table>
							</td>
						</tr>
					</table>
					</td>
				</tr>
				<tr>
					<td align="middle">
					<div id="pnlFirst">
						<table cellSpacing="0" width="100%" border="1" bordercolor="#FFFFFF">
						        <form  name="formpub"  method=post action="reg.asp?action=save" onSubmit="return checkform();">
							<tr>
								<td align="middle" colSpan="2" height="30">
								<p align="left">
								<strong><font size="3">注册第二步：填写用户信息</font></strong>&nbsp; 
								</td>
							</tr>
							<tr bgColor="#fffae8">
								<td colSpan="2" height="25">【必填项】以下<font color="#FF0000" face="宋体">*</font>为必填项，请填写真实信息！</td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								<font face="宋体">用 户 名：</font> </td>
								<td>
								<table border="0" width="100%" cellspacing="0" cellpadding="0">
									<tr>
										<td width=170><font face="宋体">
								<input tabindex="1" name="username" onBlur="javaScript:checkusername();slo('passport1');" onFocus="return sl('passport1');" onpaste="this.value=this.value.replace(/\W/g,'')" onkeyup="this.value=this.value.replace(/[^\d\w]/g,'')" maxlength=20> <font color="#FF0000">*</font>&nbsp;</td>
										<td id='passport1'><font face="宋体">
										可由英文数字组成,限6-20个字符</td>
									</tr>
								</table>
								</td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								<font face="宋体">密&nbsp;&nbsp;&nbsp; 码：</font> </td>
								<td><font face="宋体">
								<input id="txtPassword" type="password" value name="userpassword" onpaste="this.value=this.value.replace(/\W/g,'')" onkeyup="this.value=this.value.replace(/[^\d\w]/g,'')" maxlength=20>
								<font color="#FF0000">*</font>&nbsp; 限6-20个字符</font></td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								<font face="宋体">密码确认：</font> </td>
								<td><font face="宋体">
								<input id="txtPassword1" type="password" value name="repassword" maxlength=20><font color="#FF0000"> 
								*&nbsp; </font>同上</font></td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								<font face="宋体">提示问题：</font> </td>
								<td><font face="宋体">
								<select  name="question">
								<option value="1" selected>我最爱的人的名字？</option>
								<option value="2">我最喜欢的物品的名称？</option>
								<option value="3">我最爱的电影名称？</option>
								<option value="4">中学的校名？</option>
								<option value="5">我最喜欢的歌曲？</option>
								<option value="6">我最喜欢的食物？</option>
								<option value="7">我的初恋日期？</option>
								<option value="8">我妈妈的生日？</option>
								</select> <font color="#FF0000">*</font>&nbsp;可以通过回答问题获取遗忘的密码</font></td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								<font face="宋体">问题答案：</font> </td>
								<td><font face="宋体">
								<input id="answer" style="WIDTH: 176px" name="answer">
								<font color="#FF0000">*</font>&nbsp;请牢记填写的答案</font></td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								<font face="宋体">电子邮件：</font> </td>
								<td><font face="宋体">
								<input id="txtEmail1" style="WIDTH: 176px" name="email">
								<font color="#FF0000">*</font></font></td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								　</td>
								<td>　</td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								公司名称<font face="宋体">：</font></td>
								<td><font face="宋体">
								<input id="name0" style="WIDTH: 176px" name="company">
								<font color="#FF0000">*</font></font></td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								服务范围<font face="宋体">：</font></td>
								<td><input class="input1" id="service_sort1" type="checkbox" value="1" name="service_sort1"><label for="service_sort1">报价</label>
								<input class="input1" id="service_sort2" type="checkbox" value="1" name="service_sort2"><label for="service_sort2">二手车</label>
								<input class="input1" id="service_sort3" type="checkbox" value="1" name="service_sort3"><label for="service_sort3">租赁车</label><font face="宋体">
								<font color="#FF0000">*</font></font></td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								负 责 人<font face="宋体">：</font></td>
								<td><font face="宋体">
								<input id="name1" style="WIDTH: 176px" name="linkname">
								<font color="#FF0000">*</font></font></td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								市区县区<font face="宋体">：</font></td>
								<td>
   					<select size="1" name="province" onChange=chsel()  class="wenbenkuang"  >
   					  <option value="0" selected>-请选择市-</option>
          <%dim tmpShengid
tmpShengid=0
set rs_s=server.createobject("adodb.recordset")
sql="select * from province  order by shengorder"
rs_s.open sql,conn,1,1
while not rs_s.eof%>
    
          <option value="<%=rs_s("ShengNo")%>" ><%=trim(rs_s("ShengName"))%></option>
          <%
 
    rs_s.movenext
wend
rs_s.close
set rs_s=nothing
%></select><select size="1" name="city" class="wenbenkuang" >
                <option value="0" selected>-请选择县-</option>
              </select> <font color="#FF0000">*</font></td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								详细地址<font face="宋体">：</font></td>
								<td><font face="宋体">
								<input id="name2" style="WIDTH: 176px" name="address">
								<font color="#FF0000">*</font></font></td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								联系电话<font face="宋体">：</font></td>
								<td><font face="宋体">
								<input id="name3" style="WIDTH: 176px" name="tel">
								<font color="#FF0000">*</font></font></td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								传&nbsp;&nbsp;&nbsp; 真<font face="宋体">：</font></td>
								<td><font face="宋体">
								<input id="name4" style="WIDTH: 176px" name="fax"></font></td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								邮&nbsp;&nbsp;&nbsp; 编<font face="宋体">：</font></td>
								<td><font face="宋体">
								<input id="name6" style="WIDTH: 176px" name="zip"></font></td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								公司网址<font face="宋体">：</font></td>
								<td><font face="宋体">
								<input id="name5" style="WIDTH: 176px" name="web"></font></td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								公司简介<font face="宋体">：</font></td>
								<td><textarea name="info" rows="10" cols="50"></textarea> <font face="宋体">
								&nbsp;<font color="#FF0000">*</font></font></td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								会员类型<font face="宋体">：</font></td>
								<td><input type=hidden name=sort value=2>
								企业会员</td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="120" height="25">
								会员级别<font face="宋体">：</font></td>
								<td>
		普通会员</td>
							</tr>
							<tr>
								<td align="middle" bgColor="#fff2cd" colSpan="2" height="30">
								<input id="btnFirst"  type="submit" value=" 提交并填写 " name="btnFirst">&nbsp; 
								&nbsp;
								<input onclick="javascript:history.go(-1)" type="button" value="返回上一页" name="Submit2"> 
								</td>
							</tr>
							</form>
						</table>
					</div>
					</td>
				</tr>
		
			</table>
            	</td>
			</tr>
			</table>
			<%end if%>
		<%
 case "save"
 if session("regtimes")=1 then
 %>
			<div align="center">
<table width=780 border=1 cellpadding=0 bordercolor=#E4E4E4 style="border-collapse: collapse"><tr>
	<td height=100 align=center width="200">　</td><td height=100 align=center><font color=red >对不起，您刚注册过，请稍后再进行注册！<br>
	<br>
	<a href="reg.asp">会员注册</a><br>
	<br>
	<a href="../index.asp">返回首页</a></font></td></tr></table>

			</div>

<!--#include file="webfoot.asp"-->
<%
response.End
end if
ServerName1=Cstr(Request.ServerVariables("HTTP_REFERER"))
ServerName2=Cstr(Request.ServerVariables("SERVER_NAME"))
If Mid(ServerName1,8,len(ServerName2))<>ServerName2 Then
    Response.Write "路径有误，禁止从网站外部提交表单！"
    response.end
End if
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from [pysjzx_user] where  username='"&trim(request("username"))&"'",conn,1,1
if rs.recordcount>0 then
call usererr()
else
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from [pysjzx_user]",conn,1,3
rs.addnew
rs("username")=trim(request("username"))'用户名
rs("userpassword")=md5(trim(request("userpassword")))'密码
rs("question")=int(request("question"))'提问
rs("answer")=md5(trim(request("answer")))'回答
rs("email")=trim(request("email"))'邮箱
rs("company")=trim(request("company"))'公司名称

if request("service_sort1")=1 then  '报价
rs("service_sort1")=1
else
rs("service_sort1")=0
end if

if request("service_sort2")=1 then  '二手车
rs("service_sort2")=1
else
rs("service_sort2")=0
end if

if request("service_sort3")=1 then  '租赁车
rs("service_sort3")=1
else
rs("service_sort3")=0
end if

rs("province")=int(request("province"))'市区
rs("city")=int(request("city"))'城区
rs("linkname")=trim(request("linkname"))'真实姓名|联系人
rs("sex")=int(request("sex"))'性别
rs("address")=trim(request("address"))'联系地址
rs("sort")=int(request("sort"))'1个人2公司
rs("tel")=trim(request("tel"))'联系电话
rs("fax")=trim(request("fax"))'传真
rs("zip")=trim(request("zip"))'邮编
rs("web")=trim(request("web"))'网址
rs("info")=trim(request("info"))'简介

rs("adddate")=now()
rs("lastlogin")=now()
rs("logins")=1
rs("reglx")=1
rs("userlastip")=Request.ServerVariables("REMOTE_ADDR")
rs.update
rs.close
set rs=nothing
response.Cookies("pysjzx")("username")=trim(request("username"))
response.Cookies("pysjzx")("reglx")=1
session("regtimes")=1
session.Timeout=1


%><table border="1" width="780" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#E4E4E4">
	<tr>
		<td width=200 valign="top">　</td>
		<td><table cellSpacing="0" cellPadding="0" width="550" border="0">
				<tr>
					<td  height="33">
					<table cellSpacing="0" cellPadding="0" width="550" border="0">
						<tr>
						
							<td width="566">
							<table cellSpacing="0" cellPadding="0" width="397" border="0">
								<tr>
									<td width="15">　</td>
									<td width="382"><table cellSpacing="0" cellPadding="0" width="500" border="0">
				<tr>
						<td background="../images/zhuce-0005.gif" style="font-size: 9pt">
						<img height="41" src="../images/zhuce-qr-02.gif" width="116"></td>
						<td background="../images/zhuce-0005.gif" style="font-size: 9pt">
						<img border="0" src="../images/zhuce-yh-02.gif" width="123" height="41"></td>
						<td background="../images/zhuce-0005.gif" style="font-size: 9pt">
						<img border="0" src="../images/zhuce-cg-01.gif" width="118" height="41"></td>
						<td align="right" background="../images/zhuce-0005.gif" style="font-size: 9pt">
						<img height="41" src="../images/zhuce-tx-02.gif" width="116" border="0" align="left"></td>
					</tr>
					<tr>
						<td colSpan="4" style="font-size: 9pt">
						<img height="14" src="../images/bg_reg.gif" width="550"></td>
					</tr>
				</table>
									</td>
								</tr>
							</table>
							</td>
						</tr>
					</table>
					</td>
				</tr>
				<tr>
					<td align="middle">
					<div id="pnlFirst">
						<table cellSpacing="3" cellPadding="0" width="100%" border="0">
						       								<td align="middle" colSpan="2" height="30">
								<p align="left">
								<strong><font size="3">注册第三步：注册成功</font></strong>
								</td>
							</tr>
							<tr bgColor="#fffae8">
								<td colSpan="2" height="25">
								<p align="center">恭喜您已注册成为[<font color="#FF0000"><%=webname%></font>]普通用户<br>
		<%=sendmsg%></td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="20%" height="25">
								<font face="宋体">1.</font> </td>
								<td width="79%"><a href="index.asp">会员管理中心</a></td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="20%" height="25">
								<font color="#FF0000">2.</font></td>
								<td width="79%">
								<a href="../help.asp?aciton=upgrade" target=_blank><font color="#FF0000">升级为高级会员</a></font></td>
							</tr>
							<tr bgColor="#fffae8">
								<td align="right" width="20%" height="25">
								3.</td>
								<td width="79%"><a href="../help.asp?action=pay" target=_blank>汇款地址</a></td>
							</tr>
							<tr>
								<td align="middle" bgColor="#fff2cd" colSpan="2" height="30">
								&nbsp; 
								</td>
							</tr>

						</table>
					</div>
					</td>
				</tr>
		
			</table>
		</td>
	</tr>
	</table>
			
<%end if
sub usererr()
%>
			<div align="center">
<table width=780 border=1 cellpadding=0 bordercolor=#E4E4E4 style="border-collapse: collapse"><tr><td width=200></td>
<td bordercolor=#FFFFFF bgcolor=#FFFFFF align=center><table width=80% border=0 align=center cellpadding=2 cellspacing=0><tr><td class=pad>
	<strong><font size="3">注册失败</font></td></tr><tr>
<td class=pad>·您输入的用户名已存在，请返回重新输入！<br>·<a href=javascript:history.go(-1)><font color=red>点击返回上一页</font></a> </td></tr></table></td>
<td bordercolor=#FFFFFF bgcolor=#FFFFFF align=center>　</td></tr></table>
			</div>
<%
end sub
end select%>
<!--#include file="webfoot.asp"-->
</div>