<!--#include file="main.asp"-->

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=citytitle%></title>
</head>
<link href="css/Untitled-1.css" rel="stylesheet" type="text/css">
<body topmargin="0">
<%dlxf_TOP%>
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td height=400>
<!--==================-->
<%if webkey0=1 then
webkey00
else
if request("action")="reg" then%>
<%sql = "select *  from dlxf_ypxxtwo order by dlxf_date desc"
set rs=server.createobject("ADODB.Recordset")
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("dlxf_ypxxtwo"))%>","<%= trim(rs("dlxf_ypxxone_id"))%>","<%= trim(rs("dlxf_ypxxtwo_id"))%>");
        <%count = count + 1
        rs.movenext
        loop
        rs.close
        set rs=nothing%>
onecount=<%=count%>;

function changelocation(ypxxone)
    {
    document.addform.ypxxtwo_id.length = 0; 

    var ypxxone_id=ypxxone_id;
    var i;
    document.addform.ypxxtwo_id.options[0] = new Option('请选择小类','');
    for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == ypxxone)
            { 
                document.addform.ypxxtwo_id.options[document.addform.ypxxtwo_id.length] = new Option(subcat[i][0], subcat[i][2]);
            }        
        }
        
    }    
</script>
<%sql = "select *  from dlxf_ypaddtwo order by dlxf_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("dlxf_addtwo"))%>","<%= trim(rs("dlxf_addone_id"))%>","<%= trim(rs("dlxf_addtwo_id"))%>");
        <%count = count + 1
        rs.movenext
        loop
        rs.close
        set rs=nothing%>
onecount1=<%=count%>;

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

    var addone_id=addone_id;
    var i;
    document.addform.addtwo_id.options[0] = new Option('请选择市','');
    for (i=0;i < onecount1; i++)
        {
            if (subcat1[i][1] == addone)
            { 
                document.addform.addtwo_id.options[document.addform.addtwo_id.length] = new Option(subcat1[i][0], subcat1[i][2]);
            }        
        }
        
    }
</script>
<script language="JavaScript">
<!--
function checkdata() {
if( isNumberString(addform.user.value,"1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_")!=1 || addform.user.value.length<2 || addform.user.value.length>16) {
alert("\用户注册出错，下面是产生错误的可能原因：\n\n·用户名必须是2-16位的数字、英文或下划线")
return false;
}
if( addform.pass.value =="" || addform.pass.value.length<4 || addform.pass.value.length>16) {
alert("\用户注册出错，下面是产生错误的可能原因：\n\n·请输入 4-16 位的密码")
return false;
}
if( addform.pass1.value =="" || addform.pass1.value.length<4 || addform.pass1.value.length>16) {
alert("\用户注册出错，下面是产生错误的可能原因：\n\n·请输入您的确认密码")
return false;
}
if( addform.pass.value != addform.pass1.value ) {
alert("\用户注册出错，下面是产生错误的可能原因：\n\n·密码与确认密码不一致，请重新输入")
return false;
}
if( addform.ypxxone_id.value =="" || addform.ypxxtwo_id.value=="") {
alert("\用户注册出错，下面是产生错误的可能原因：\n\n·请选择企业所属行业")
return false;
}
if( addform.coname.value =="" ) {
alert("\用户注册出错，下面是产生错误的可能原因：\n\n·请输入您的企业名称")
return false;
}
if( addform.colxr.value =="" ) {
alert("\用户注册出错，下面是产生错误的可能原因：\n\n·请输入您的企业联系人")
return false;
}
if( addform.addone_id.value =="" || addform.addtwo_id.value=="") {
alert("\用户注册出错，下面是产生错误的可能原因：\n\n·请选择企业所在地区")
return false;
}
if( addform.coaddress.value =="" ) {
alert("\用户注册出错，下面是产生错误的可能原因：\n\n·请输入您的企业详细地址")
return false;
}
if( isNumberString(addform.cotelq.value,"1234567890")!=1 || isNumberString(addform.cotel.value,"1234567890")!=1 || addform.cotelq.value =="" || addform.cotel.value=="" || addform.cotelq.value.length<3 || addform.cotelq.value.length>4 || addform.cotel.value.length<7 || addform.cotel.value.length>8) {
alert("\用户注册出错，下面是产生错误的可能原因：\n\n·请输入正确的企业联系电话及区号")
return false;
}
if( isNumberString(addform.mail.value,"1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_@.-")!=1 || addform.mail.value.length<8) {
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>
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
<form name="addform" method="post" action="reg_save.asp" onSubmit="return checkdata()">
  <tr>
	<td height="25" colspan=2>当前位置：<a href=index.asp>首页</a> >> <a href=reg.asp>注册会员</a> >> <a href=reg.asp?action=reg>诚信通会员注册</a></td>
  </tr>
  <tr bgcolor="#efefef">
    <td colspan=2 height="25" class="bigheader">　　<strong>::企业登录信息::</strong></td>
  </tr>
  <tr>
    <td width="26%" align="right">登录用户名 &nbsp;</td>
	<td width="74%" height="40"><input name="user" type="text" size="20" maxlength="16" class=input2><br>2-16个<font color=red>英文、数字或下划线</font><%if application("dnskey")=1 then%>，并自动生成为 http://<%if dnswww=1 then%>www.<%end if%>your<%=citydns%></font> 的二级域名<%end if%></td>
  </tr>
  <tr>
    <td align="right">登录密码 &nbsp;</td>
	<td height="40"><input name="pass" type="password" size="20" maxlength="16" class=input2> 4-16个字符</td>
  </tr>
  <tr>
    <td align="right">确认密码 &nbsp;</td>
	<td height="40"><input name="pass1" type="password" size="20" maxlength="16" class=input2> 4-16个字符</td>
  </tr>
  <tr bgcolor="#efefef">
    <td colspan=2 height="25" class="bigheader">　　<strong>::企业基本资料::</strong></td>
  </tr>
  <tr>
    <td align="right">选择行业 &nbsp;</td>
	<td height="40"><select name="ypxxone_id" onChange="changelocation(document.addform.ypxxone_id.options[document.addform.ypxxone_id.selectedIndex].value)">
<option value="" selected>请选择大类</option>
                    <%
sql="select *  from dlxf_ypxxone order by dlxf_date desc"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1
while not rs.eof%>
<option value="<%=rs("dlxf_ypxxone_id")%>"><%=rs("dlxf_ypxxone")%></option>
<%rs.movenext
wend
rs.Close()
%> 
</select>
<select name="ypxxtwo_id">
<option selected value="">请选择小类</option>
</select></td>
  </tr>
  <tr>
    <td align="right">公司名称 &nbsp;</td>
	<td height="40"><input name="coname" type="text" size="40" maxlength="20" class=input2></td>
  </tr>
  <tr>
    <td align="right">联 系 人 &nbsp;</td>
	<td height="40"><input name="colxr" type="text" size="10" maxlength="5" class=input2> <input name="colxrsex" type="radio" value="先生" checked style="border:0px">先生　<input name="colxrsex" type="radio" value="小姐" style="border:0px">小姐</td>
  </tr>
  <tr>
    <td align="right">选择地区 &nbsp;</td>
	<td height="40"><select name="addone_id" onChange="changelocation1(document.addform.addone_id.options[document.addform.addone_id.selectedIndex].value)">
<option value="" selected>请选择省</option>
                    <%
sql="select *  from dlxf_ypaddone order by dlxf_date desc"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1
while not rs.eof%>
<option value="<%=rs("dlxf_addone_id")%>"><%=rs("dlxf_addone")%></option>
<%rs.movenext
wend
rs.Close()
%> 
</select>
<select name="addtwo_id">
<option selected value="">请选择市</option>
</select></td>
  </tr>
  <tr>
    <td align="right">详细地址 &nbsp;</td>
	<td height="40"><input name="coaddress" type="text" size="40" maxlength="40" class=input2><br>请填写市级以下的包括“区、县、街道、门牌”等详细地址</td>
  </tr>
  <tr>
    <td align="right">联系电话 &nbsp;</td>
	<td height="40"><input name="cotelq" type="text" size="5" maxlength="4" class=input2> - <input class=input2 name="cotel" type="text" size="10" maxlength="8"> 请填写电话区号</td>
  </tr>
  <tr>
    <td align="right">联系邮箱 &nbsp;</td>
	<td height="40"><input name="mail" type="text" size="40" maxlength="40" class=input2></td>
  </tr>
<script language="JavaScript">
function show_o(){     
		oth.style.display = "";     
}	     
function show(){     
		oth.style.display = "none"; 
	    vip.style.display = "none";
}	     
function show_vip(){     
	if (vip.style.display=="none"){
	vip.style.display = "";     
    }else{     
	vip.style.display = "none";
	}
	}	     
</script>
  <tr>
    <td align="right">注册类型 &nbsp;</td>
	<td height="40"><%if citysy=1 then%><input name="vip" type="radio" value="3" style="border:0px" onClick="show()">先试用(<font color=red><%=citysydate%>天</font>)　<%end if%><input name="vip" type="radio" value="5" checked style="border:0px" onClick="show()">普通会员<%if cityuserp=1 then%>(<font color=red><%=cityuserpm%>元／年</font>)<%end if%>　<input name="vip" type="radio" value="1" style="border:0px" onClick="show_o()">直接申请 VIP(<%if citysyvipdate<>0 and citysyvipdate<>"" then%><font color=red>赠送<%=citysyvipdate%>天</font><%end if%><%if cityvipp=1 then%> <font color=red><%=cityvippm%>元／年</font><%end if%>)</td>
  </tr>
  <tr id=oth style="display:none">
    <td align="center"></td>
	<td height="40"><input type="checkbox" name="tyvip" value="1" style="border:0">直接申请VIP请先同意VIP注册条款！　　<img src="img/item.gif" align=absmiddle> <font onclick="show_vip()" style="cursor:hand"><u>阅读VIP注册条款！</u></font></td>
  </tr>
  <tr id=vip style="display:none"><td height="300" colspan="2" align=center><textarea class="textarea1" name="cityusertk" cols="80" rows="20"readonly><%=cityviptk%></textarea></td></tr>
  <tr align="center">
    <td colspan="2" height="80" valign="top"><input type="image" name="img" src="img/reg.gif" style="border:0"></td>
  </tr>
</form>
</table>
<script language="javascript"> 
    changelocation(document.addform.ypxxone_id.options[document.addform.ypxxone_id.selectedIndex].value); 
</script>
<script language="javascript"> 
    changelocation1(document.addform.addone_id.options[document.addform.addone_id.selectedIndex].value); 
</script>
<%elseif request("action")="eng" then%>
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
  <tr>
	<td height="25">当前位置：<a href=index.asp>首页</a> >> <a href=reg.asp>注册会员</a> >> <a href=reg.asp?action=eng>诚信通会员注册</a></td>
  </tr>
  <tr bgcolor="#efefef">
    <td height="25" class="bigheader">　　<strong>::诚信通会员注册条款::</strong></td>
  </tr>
  <tr>
	<td height="400" align=center><textarea class="textarea1" name="cityusertk" cols="80" rows="25"readonly><%=cityusertk%></textarea></td>
  </tr>
  <tr align="center">
    <td height="80" valign="top"><a href=reg.asp?action=reg><img src="img/reg1.gif" style="border:0"></a>　　<a href=index.asp><img src="img/reg2.gif" style="border:0"></a></td>
  </tr>
</table>
<%else%>
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
  <tr>
	<td height="25">当前位置：<a href=index.asp>首页</a> >> <a href=reg.asp>注册会员</a></td>
  </tr>
  <tr bgcolor="#efefef">
	<td height="25" class="bigheader">　　<strong>::请选择注册类型::</strong></td>
  </tr>
  <tr>
	<td height="300" align=center><a href=individual/reg.asp><img src="img/login_gr.gif" border=0></a>　　　　　<a href=reg.asp?action=eng><img src="img/login_yp.gif" border=0></a></td>
  </tr>
  <tr><td height="50"></td></tr>
</table>
<%end if
end if%>
<!--==================-->
	</td>
  </tr>
</table>
<!--====== bottom ========-->
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor=#ffffff>
<tr><td height=10></td></tr>
<tr><td height=2 bgcolor=#4795EC></td></tr>
  <tr>
    <td align="center" height=80><%=citybottom%></td>
  </tr>
</table>
</body>
</html>
