<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<% data_path="../" 'ACC连接数据库路径，对SQL无效 %>
<!--#include file="../conn/conn.asp"-->
<!--#include file="../inc/safe.asp"-->
<!--#include file="../inc/head.asp"-->
 <!--#include file="../inc/md5.asp"-->
  <!--#include file="../apibbs/setbbs.asp"-->
 <!--#include file="../apibbs/bbsconn.asp"--><!--论坛数据库链接--> 
<%
Function IsObjInstalled(strClassString)
	on error resume next
	IsObjInstalled = False
	Err = 0
	Dim xTestObj
	Set xTestObj = Server.CreateObject(strClassString)
	If 0 = Err Then IsObjInstalled = True
	Set xTestObj = Nothing
	Err = 0
End Function
Sub SendMailUser (mail_email,mail_subject,mail_body,mailusername,mailuserpass,mailaddress,fromname)
	On Error Resume Next
	Dim JMail
	userip = Request.ServerVariables("HTTP_X_FORWARDED_FOR")             
	If userip = "" Then userip = Request.ServerVariables("REMOTE_ADDR")    '获得真实IP这样的话在本地，在服务器测试都没有问题了
	
	Set JMail = Server.CreateObject("JMail.Message")
	JMail.silent = true
	JMail.Charset = "gb2312"
	JMail.ISOEncodeHeaders = False
	JMail.MailServerUserName = fromname '发信人的电子邮件地址
	JMail.MailServerPassword = mailuserpass              '发信人的电子邮件密码
	JMail.From = fromname 
	JMail.FromName = fromname                            '发信人的名字
	JMail.Subject = mail_subject
	JMail.Priority = 1
	JMail.AddHeader "Originating-IP",userip
	JMail.AddRecipient(mail_email)
	JMail.Body = mail_body
	JMail.Send(mailaddress)                        'SMTP地址         
	JMail.Close() 
	Set JMail = Nothing
 	
End Sub
Dim theInstalledObjects(0)
theInstalledObjects(0) = "JMail.SMTPMail"
'  /////////////////////BBS论坛 Begin//////////////////////////////////////
if OpenBBS=1 then 
	bbsPath="../bbs/"  'BBS整合论坛连接
	if Request.ServerVariables("HTTP_X_FORWARDED_FOR")="" then 
		ipdress=Request.ServerVariables("REMOTE_ADDR")
	else
		ipdress=Request.ServerVariables("HTTP_X_FORWARDED_FOR")
	end if
	if ipdress="" or isnull(ipdress) or instr(1,ipdress,".")=0 then
		ipdress="未知"
	end if
end if 
'  /////////////////////BBS论坛 End//////////////////////////////////////
%><noscript><iframe src="-.html"></iframe></noscript>
<SCRIPT language=javascript>  
<!-- Hide  
 function killErrors() {  
 return true;  
 }  
 window.onerror = killErrors;  
// -->  
</SCRIPT>
<%
'验证用户登陆情况
if issession=0 then
	username=Replace_Text(request.Cookies("Yxmember"))
	gsid=Replace_Text(request.Cookies("Yxmemberid"))
	email=Replace_Text(request.Cookies("Email"))
	yxflag=Replace_Text(request.Cookies("yxflag"))
	gradeid=Replace_Text(request.Cookies("gradeid"))
else
	username=session("user")
	gsid=session("id")
	gradeid=session("gradeid")
	yxflag=session("yxflag")
	email=session("email")
end if

'处理提交的信息处理----------- start--------------------------------------	
Nextbtn=Replace_Text(request.Form("Next"))
issave=true
if Nextbtn<>"" then 
	'验证码是否为必填项
	yzm=Replace_Text(request.Form("Verifycode"))
	if initdata("yzmb",reglist)=1 then 
		if yzm="" then 
			response.Write("<script>alert('请输入正确的验证码!');history.back(-1);</script>")
			response.End()
			issave=false
		end if
	end if
	'问题验证
	safenet=Replace_Text(request.Form("safenet"))
	if issafe=1 then 
		if safenet="" then 
			response.Write("<script>alert('请输入正确的问题验证答案!');history.back(-1);</script>")
			response.End()
			issave=false
		end if
		sysCode=Session("vCodeUser")
		if cstr(safenet)<>cstr(sysCode) then
			response.Write("<script>alert('请输入正确的问题验证!');history.back(-1);</script>")
			response.End()
			issave=false     
		end if
	end if
	
	if yzm<>"" then
		if Isnumeric(trim(yzm))=false then
			response.Write("<script>alert('请输入正确的验证码!');history.back(-1);</script>")
			response.End() 
			issave=false
		end if
		if issession=0 then 
			safecode=Replace_Text(request.Cookies("safecode"))
		else
			safecode=Session("SafeCode")
		end if 
		if cstr(yzm)<>cstr(safecode) then
			response.Write("<script>alert('请输入正确的验证码!');history.back(-1);</script>")
			response.End()  
			issave=false     
		end if
	end if
	if Replace_Text(request.form("user"))="" then
		response.Write("<script>alert('没有填写会员登录名!');history.back(-1);</script>")
		response.End() 
		issave=false   
	else
	if len(Replace_Text(request.form("user")))>20 or len(Replace_Text(request.form("user")))<6 then
		response.Write("<script>alert('会员登录名必须是6-20位字符!');history.back(-1);</script>")
		response.End() 
		issave=false	
	end if
	userCOM=Replace_Text(request.form("user"))
	sqlCOM="select id from Yixiang_corporation where [user]='"&userCOM&"'"
	set rsCOM=server.CreateObject("adodb.recordset")
	rsCOM.open sqlCOM,conn,1,1
	if not (rsCOM.Bof and rsCOM.eof) then
		response.Write("<script>alert('此“会员登录名”已有人用了，请重新设置!');history.back(-1);</script>")
		response.End()
		issave=false 
		rsCOM.close
	end if
end if

if Replace_Text(request.form("pass"))="" then
	response.Write("<script>alert('密码必须是6-20个字符!');history.back(-1);</script>")
	response.End()	
	issave=false 
else
	if len(Replace_Text(request.form("pass")))>20 or len(Replace_Text(request.form("pass")))<6 then
		response.Write("<script>alert('密码必须是6-20个字符!');history.back(-1);</script>")
		response.End()	
		issave=false
	else
		if Replace_Text(request.form("confirmpassword"))<>Replace_Text(request.form("pass")) then
			response.Write("<script>alert('两次输入的密码不一致!');history.back(-1);</script>")
			response.End()	
			issave=false	 
		end if
	end if
end if


if Replace_Text(request.form("email"))="" then
	response.Write("<script>alert('没有填写电子邮箱!');history.back(-1);</script>")
	response.End()	
	issave=false	 
else
	if IsValidEmail(Replace_Text(request.form("email")))=false then
		response.Write("<script>alert('请填写正确的电子邮箱!');history.back(-1);</script>")
		response.End()
		issave=false		 
	else
		emailc=Replace_Text(request.form("email"))
		sqlc="select id from Yixiang_corporation where email='"&emailc&"'"
		set rsc=server.CreateObject("adodb.recordset")
		rsc.open sqlc,conn,1,1
		if not (rsc.Bof and rsc.eof) then
			response.Write("<script>alert('您填写的邮箱已经被另一个注册用户使用或同名，请另用一个电子邮件地址!');history.back(-1);</script>")
			response.End()
			issave=false		 
			rsc.close
		end if
	end if
end if

if Replace_Text(request.form("qymc"))="" then
	response.Write("<script>alert('没有填写公司名称!');history.back(-1);</script>")
	response.End()	
	issave=false
else
	qymc=Replace_Text(request.form("qymc"))
	sqlm="select id from Yixiang_corporation where qymc='"&qymc&"'"
	set rsm=server.CreateObject("adodb.recordset")
	rsm.open sqlm,conn,1,1
	if not (rsm.Bof and rsm.eof) then
		response.Write("<script>alert('您填写的公司名称已被使用或同名了，请用修改公司名称!');history.back(-1);</script>")
		response.End()	
		issave=false	
		rsm.close
	end if
end if
'判断同一IP注册间隔时间
If Not Isnull(Session("regtime")) Then
	If DateDiff("s",Session("regtime"),Now()) < 5 Then
		response.Write("<script>alert('同一IP不能连续注册,请隔段时间再来!');location='../index.html';</script>")
		response.End()	
		issave=false	
	End If
End If

if issave=true and Replace_Text(request("action"))="save" then 
	'开始存储数据
	denjiid=Replace_Text(request.form("denjiid"))
	sh=Replace_Text(request.form("sh"))
	foldersize=Replace_Text(request.form("foldersize"))
	user=Replace_Text(request.form("user"))
	pass=Replace_Text(request.form("pass"))
	question=Replace_Text(request.form("question"))
	msn=Replace_Text(request.form("msn"))
	tm=Replace_Text(request.form("tm"))
	answer=Replace_Text(request.form("answer"))
	name1=Replace_Text(request.form("name"))
	ch=Replace_Text(request.form("ch"))
	email=Replace_Text(request.form("email"))
	phonecountry=Replace_Text(request.form("phonecountry"))
	phonearea=Replace_Text(request.form("phonearea"))
	phonenumber=Replace_Text(request.form("phonenumber"))
	phone=phonecountry&"&nbsp;"&phonearea&"&nbsp;"&phonenumber
	country=Replace_Text(request.form("country1"))
	sf=Replace_Text(request.form("province"))
	city=Replace_Text(request.form("city"))
	address=Replace_Text(request.form("address"))
	faxcountry=Replace_Text(request.form("faxcountry"))
	faxarea=Replace_Text(request.form("faxarea"))
	faxnumber=Replace_Text(request.form("faxnumber"))
	fax=faxcountry&"&nbsp;"&faxarea&"&nbsp;"&faxnumber
	mobile=Replace_Text(request.form("mobile"))
	post=Replace_Text(request.form("post"))
	qymc=Replace_Text(request.form("qymc"))
	zw=Replace_Text(request.form("zw"))
	qyjj=Replace_Text(request.form("qyjj"))
	qylb=Replace_Text(request.form("qylb"))
	typeid_2=request.form("selectID")                              '第一类
	
	p_z_Z_productionService=Replace_Text(request.form("productionService"))
	p_z_Z_productionService=p_z_Z_productionService&","&Replace_Text(request.form("productionService2"))
	p_z_Z_productionService=p_z_Z_productionService&","&Replace_Text(request.form("productionService3"))
	
	idate=date()

	sql="select * from Yixiang_corporation where [user]='"&user&"' or qymc='"&qymc&"' or email='"&email&"'"
	set rs=server.CreateObject("adodb.recordset")
	rs.open sql,conn,1,3
	if not (rs.Bof and rs.eof) then
		response.Write("<script>alert('您填写的会员登陆名或公司名称或E-mail已存在，请返回重新填写!');history.back(-1);</script>")
		response.End()	
	else
' ///////////////////////////整合论坛 登录/////////   Begin  ////////////////////////////
		if OpenBBS=1 then 
			sqlbbs="select top 1 * from LxTel_User where username='"&user&"' or email='"&email&"' "
			Set rsbbs = Server.CreateObject("ADODB.Recordset")
			rsbbs.open sqlbbs,ConnBBS,1,3
			DataNum=DataNum+1
			if ch="先生" then 
				ch="男"
			else
				ch="女"
			end if
			if (rsbbs.BOF and rsbbs.EOF) then
				rsbbs.addnew
			end if
			rsbbs("admin")=0'该帐号权限
			rsbbs("lock")=0 '帐号状态
			rsbbs("UserPage")="http://www.changehope.com"'主页
			rsbbs("username")=user'用户名
			rsbbs("sex")=ch'性别
			rsbbs("password")=md5(pass,16)'论坛登录密码
			rsbbs("passfaq")=question'论坛提示问题
			rsbbs("passdh")=md5(answer,16) '论坛提示答案
			rsbbs("age")=0 '年龄
			rsbbs("email")=email'Email电子邮箱
			if ch="先生" then
				rsbbs("idimage")="01.gif" ''头像
			else
				rsbbs("idimage")="02.gif"
			end if
			rsbbs("grade")=0
			rsbbs("credit")=0
			rsbbs("integral")=0
			rsbbs("experience")=0
			rsbbs("MoneyNum")=0
			rsbbs("postnum")=0
			rsbbs("loginnum")=0
			rsbbs("regtime")=now()
			rsbbs("kfbase")=1
			rsbbs("KfIndividual")=0
			rsbbs("LastIP")=ipdress
			rsbbs("loginfnum")=0
			rsbbs("lastlogin")=now()
			rsbbs("loginftime")=now()
			rsbbs("idimagex")=150
			rsbbs("idimagey")=200
			rsbbs.update()
			rsbbs.close()
			Set rsbbs=nothing
			ConnBBS.Execute("UpDate Dv_Setup Set Forum_UserNum=Forum_UserNum+1,Forum_lastUser='"&user&"'")
			CloseBBS '关闭connBBS
		end if

' ///////////////////////////整合论坛 登录 //////  End  ////////////////////////////

		if OpenBBS=2 then 
			UserIM=Request.form("homepage") &"|||" & Qq & "|||"& Request.form("ICQ") &"|||"& Request.form("msn") &"|||"& (Request.form("yahoo")) &"|||"& (Request.form("aim")) &"|||"& (Request.form("uc"))
			UserIM=Server.htmlencode(UserIM)
			Set RsSetting=connDv.Execute("Select UserTitle,GroupPic,UserGroupID,IsSetting,ParentGID From Dv_UserGroups Where ParentGID=3 Order By MinArticle")
			UserClass=RsSetting("UserTitle")
			UserGroupID = RsSetting("UserGroupID")
			TitlePic=RsSetting("GroupPic")
			RsSetting.close:Set RsSetting=Nothing
			Set rsDvbbs=Server.createobject("adodb.recordset")
			SqlDvbbs="Select * from Dv_User Where [UserName]='"&user&"'"
			rsDvbbs.open SqlDvbbs,connDv,1,3
			
			if not rsDvbbs.eof then 
				rsDvbbs("UserPassword")=md5(pass,16)
				rsDvbbs.update()
			else
				rsDvbbs.addnew()
				rsDvbbs("UserName")=user
				rsDvbbs("UserPassword")=md5(pass,16)
				rsDvbbs("UserEmail")=email
				rsDvbbs("UserPost")=0
				rsDvbbs("UserTopic")=0
				if ch="先生" then 
					UserSex=1
				else
					UserSex=0
				end if
				rsDvbbs("UserSex")=UserSex
				rsDvbbs("UserFace")="Images/userface/image1.gif"
				rsDvbbs("UserWidth")=32
				rsDvbbs("UserHeight")=32
				rsDvbbs("UserIM")=UserIM
				rsDvbbs("JoinDate")=now()
				rsDvbbs("LastLogin")=now()
				rsDvbbs("UserLogins")=1
				rsDvbbs("UserViews")=0
				rsDvbbs("LockUser")=0
				rsDvbbs("UserClass")=UserClass
				rsDvbbs("userwealth")=100
				rsDvbbs("userEP")=60
				rsDvbbs("userCP")=30
				rsDvbbs("UserPower")=0
				rsDvbbs("UserDel")=0
				rsDvbbs("UserIsBest")=0
				rsDvbbs("UserQuesion")=question
				rsDvbbs("UserAnswer")=md5(answer,16)
				rsDvbbs("UserLastIP")=Request.ServerVariables("REMOTE_ADDR")
				rsDvbbs("UserFav")="陌生人,我的好友,黑名单"
				rsDvbbs("UserInfo")="||||||||||||||||||||||||||||||||||||||||||"
				rsDvbbs("UserSetting")="1|||0|||0"
				rsDvbbs("UserGroupID")=UserGroupID
				rsDvbbs("TitlePic")=TitlePic
				rsDvbbs("UserHidden")=0
				rsDvbbs.update()
			end if
			connDv.Execute("UpDate Dv_Setup Set Forum_UserNum=Forum_UserNum+1,Forum_lastUser='"&user&"'")
			rsDvbbs.close
			Set rsDvbbs=nothing
			CloseBBS '关闭connBBS
		end if
	
'wang wei ///////////////////////////整合论坛 登录 End////////////////////////////
	rs.addnew
	rs("user")=user
	rs("pass")=pass
	rs("question")=question
	rs("answer")=answer
	rs("name")=name1
	rs("ch")=ch
	rs("tm")=tm
	rs("email")=email
	rs("phone")=phone
	rs("country")=country
	rs("sf")=sf
	rs("city")=city
	rs("address")=address
	rs("fax")=fax
	rs("mobile")=mobile
	rs("post")=post
	rs("qymc")=qymc
	rs("zw")=zw
	if request.Form("topCatFormKeyValue")<>"" then
	rs("sortid")=request.Form("topCatFormKeyValue")
	else
	rs("sortid")=0
	end if 
	if request.Form("secondCatFormKeyValue")<>"" then
	 rs("typeid")=request.Form("secondCatFormKeyValue")
	else
	rs("typeid")=0
	end if
	if request.Form("leafCatFormKeyValue")<>"" then 
	rs("typeid_2")=request.Form("leafCatFormKeyValue")
	else
	rs("typeid_2")=0
	end if
	rs("alltypeid")=typeid_2
	rs("zycp")=p_z_Z_productionService
	rs("idate")=idate
	rs("Qyjj")=qyjj 
	rs("foldersize")=foldersize '为用户分配默认的空间大小
	rs("hybz")=0
	rs("msn")=msn
	rs("qylb")=qylb
	if sh=1 then
	rs("flag")=0
	else
	rs("flag")=1
	rs("BeginDate")=date()
	rs("EndDate")=dateadd("m",12,date())
	end if
	rs("gradeid")=denjiid
	rs("trust_score")=10 
	rs.update
	Session("regtime")=now
	'清空验证码和注册信息
	if issession=0 then 
		response.Cookies("safecode")=""
	else
		Session("SafeCode")=""
	end if
	
	if issession=0 then 
		response.Cookies("vCodeUser")=""
	else
		Session("vCodeUser")=""
	end if 
	 '判断是否可以发送会员注册邮件
	If IsObjInstalled(theInstalledObjects(0)) Then
		if send_mail=0 then
			mail_content=replace(mail_content,"#HOPE_UserName#",user)
			mail_content=replace(mail_content,"#HOPE_PassWord#",pass)
			call SendMailUser(email,"恭喜您已经成功注册为"&WebName&"会员",mail_content,HOPE_MailUser,HOPE_MailPwd,SMTPServer,SystemEmail)
		end if
	End If
	if  sh=1 then
		response.Write("<script>alert('恭喜你！注册成功！待我们审核通过后,为你开通服务功能！');location.href='"&HOPE_InstallDir&"';</script>")
	response.End()
	else
		if issession=0 then 
			Response.Cookies("Yxmember")=rs("user")
			Response.Cookies("Yxmemberid")=rs("id")
			Response.Cookies("Yxmemberlist")=md5(rs("Pass"),16)
			Response.Cookies("Yxmemberip")=md5(Request.ServerVariables("REMOTE_ADDR"),16)
			Response.Cookies("gradeid")=rs("gradeid")  
			Response.Cookies("yxFlag")=rs("Flag")  
			Response.Cookies("Email")=rs("Email")
			Response.Cookies("Yxtime")=now()
			
			Response.Cookies("Yxmember").Expires=dateadd("n",time_score,now())
			Response.Cookies("Yxmemberid").Expires=dateadd("n",time_score,now())
			Response.Cookies("Yxmemberlist").Expires=dateadd("n",time_score,now())
			Response.Cookies("Yxmemberip").Expires=dateadd("n",time_score,now())
			Response.Cookies("gradeid").Expires=dateadd("n",time_score,now())
			Response.Cookies("yxFlag").Expires=dateadd("n",time_score,now())
			Response.Cookies("Email").Expires=dateadd("n",time_score,now())
			Response.Cookies("Yxtime").Expires=dateadd("n",time_score,now())   
		else
			session("id")=rs("id")
			session("user")=rs("user")
			session("Email")=rs("Email")
			session("yxflag")=rs("flag") 
			session("gradeid")=rs("gradeid")
			session.Timeout=45
		end if 
		response.Redirect(HOPE_InstallDir&"member/index.asp")   
	end if
	rs.close
	end if
	end if
end if
'处理提交的信息处理----------- end --------------------------------------	
%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=webname%>会员注册</title>
<script>
sallt=new Array();
deny=new Array();
sallte=new Array();
salltc=new Array();
<%
'--禁止注册的名称--------------------\
if Replace_Text(citypingname)<>"" then 
if instr(Replace_Text(citypingname),"|")>0 then 
uname=split(Replace_Text(citypingname),"|")
for e=0 to ubound(uname)
%>
deny[<%=e%>]=new Array("<%=uname(e)%>");
<%
next
end if
end if
'------------------------
%>
</script>
<%
dengji=Replace_Text(request.Form("djid"))
regok=Replace_Text(request.Form("regok"))
if dengji="" and regok="" then
   response.Write("<table border=0 cellpadding=0 cellspacing=0 width=778 align=center><tr><td align=center height=150><font color=red>对不起！非法链接！</font></td></tr><tr><td align=center> <a href='"&HOPE_InstallDir&"' target='_self'>返回首页</a>&nbsp;&nbsp;&nbsp; <a href='"&HOPE_InstallDir&"login/register.asp' target='_self'>我要注册</a>&nbsp;&nbsp;&nbsp;<a href='#' onclick='javascript:window.close();'>关闭窗口</a><br /><br /><br /></td></tr><tr><td bgcolor=#EFEFEF>"&HOPE_WebButtomGo&"</td></tr></table> ")
%>
<!--#include file="../inc/end.asp"-->
 <%
response.End()
else
	set rsd=server.CreateObject("adodb.recordset")
	sqld="select * from yixiang_vipgrade where id="&dengji
	rsd.open sqld,conn,1,1
	if not rsd.eof then 
		gradename=rsd("gradename")
		roleid=rsd("roleid")
		reglist=rsd("reglist")
		shenhe=rsd("shenhe")
		foldersize=rsd("foldersize")
		rsd.close
	end if
end if
'初始设置函数----------------start-------------------------------------------------------
function initdata(str,strs)
	if instr(strs,str)>0 then
		resultval=1
	else
		resultval=0
	end if
	initdata=resultval
end function
  '初始设置------------------start-------------------------------------------------------
 %>
 <style type="text/css">
<!--
.STYLE1 {color: #FF0000}
-->
 </style>
 <script language="javascript">
// 获取全部表单的状态
// 判断值为1值为不验证,2为验证,但不必填,3为必填
var yzm,username,pass,pass2,ques,ans,usertrue,sex,email,tm,msn,tel,comaddr,street,fax
var mobile,post,comname,work,mainkind,mainpro,moshi,comdes
var imgOk="<img src='/images/yesok.gif' width='16' height='16' hspace='3' align='absmiddle' />";
var imgErr="<img src='/images/yesno.gif' width='16' height='16' hspace='3' align='absmiddle' />"

<%
	if initdata(",yzm,",","&reglist&",")=1 then
		if initdata(",yzmb,",","&regList&",")=1 then
			response.Write("yzm=3;"&vbcrlf)
		else
			response.Write("yzm=2;"&vbcrlf)
		end if
	else
		response.write("yzm=1;"&vbcrlf)
	end if
	
	if initdata(",username,",","&reglist&",")=1 then
		if initdata(",usernameb,",","&regList&",")=1 then
			response.Write("username=3;"&vbcrlf)
		else
			response.Write("username=2;"&vbcrlf)
		end if
	else
		response.write("username=1;"&vbcrlf)
	end if
	
	if initdata(",pass,",","&reglist&",")=1 then
		if initdata(",passb,",","&regList&",")=1 then
			response.Write("pass=3;"&vbcrlf)
		else
			response.Write("pass=2;"&vbcrlf)
		end if
	else
		response.write("pass=1;"&vbcrlf)
	end if
	
	if initdata(",pass2,",","&reglist&",")=1 then
		if initdata(",pass2b,",","&regList&",")=1 then
			response.Write("pass2=3;"&vbcrlf)
		else
			response.Write("pass2=2;"&vbcrlf)
		end if
	else
		response.write("pass2=1;"&vbcrlf)
	end if
	
	if initdata(",ques,",","&reglist&",")=1 then
		if initdata(",quesb,",","&regList&",")=1 then
			response.Write("ques=3;"&vbcrlf)
		else
			response.Write("ques=2;"&vbcrlf)
		end if
	else
		response.write("ques=1;"&vbcrlf)
	end if
	
	if initdata(",ans,",","&reglist&",")=1 then
		if initdata(",ansb,",","&regList&",")=1 then
			response.Write("ans=3;"&vbcrlf)
		else
			response.Write("ans=2;"&vbcrlf)
		end if
	else
		response.write("ans=1;"&vbcrlf)
	end if
	
	if initdata(",usertrue,",","&reglist&",")=1 then
		if initdata(",usertrueb,",","&regList&",")=1 then
			response.Write("usertrue=3;"&vbcrlf)
		else
			response.Write("usertrue=2;"&vbcrlf)
		end if
	else
		response.write("usertrue=1;"&vbcrlf)
	end if
	
	if initdata(",sex,",","&reglist&",")=1 then
		if initdata(",sexb,",","&regList&",")=1 then
			response.Write("sex=3;"&vbcrlf)
		else
			response.Write("sex=2;"&vbcrlf)
		end if
	else
		response.write("sex=1;"&vbcrlf)
	end if
	
	if initdata(",email,",","&reglist&",")=1 then
		if initdata(",emailb,",","&regList&",")=1 then
			response.Write("email=3;"&vbcrlf)
		else
			response.Write("email=2;"&vbcrlf)
		end if
	else
		response.write("email=1;"&vbcrlf)
	end if
	
	if initdata(",tm,",","&reglist&",")=1 then
		if initdata(",tmb,",","&regList&",")=1 then
			response.Write("tm=3;"&vbcrlf)
		else
			response.Write("tm=2;"&vbcrlf)
		end if
	else
		response.write("tm=1;"&vbcrlf)
	end if
	
	if initdata(",msn,",","&reglist&",")=1 then
		if initdata(",msnb,",","&regList&",")=1 then
			response.Write("msn=3;"&vbcrlf)
		else
			response.Write("msn=2;"&vbcrlf)
		end if
	else
		response.write("msn=1;"&vbcrlf)
	end if
	
	if initdata(",tel,",","&reglist&",")=1 then
		if initdata(",telb,",","&regList&",")=1 then
			response.Write("tel=3;"&vbcrlf)
		else
			response.Write("tel=2;"&vbcrlf)
		end if
	else
		response.write("tel=1;"&vbcrlf)
	end if
	
	if initdata(",comaddr,",","&reglist&",")=1 then
		if initdata(",comaddrb,",","&regList&",")=1 then
			response.Write("comaddr=3;"&vbcrlf)
		else
			response.Write("comaddr=2;"&vbcrlf)
		end if
	else
		response.write("comaddr=1;"&vbcrlf)
	end if
	
	if initdata(",street,",","&reglist&",")=1 then
		if initdata(",streetb,",","&regList&",")=1 then
			response.Write("street=3;"&vbcrlf)
		else
			response.Write("street=2;"&vbcrlf)
		end if
	else
		response.write("street=1;"&vbcrlf)
	end if
	
	if initdata(",fax,",","&reglist&",")=1 then
		if initdata(",faxb,",","&regList&",")=1 then
			response.Write("fax=3;"&vbcrlf)
		else
			response.Write("fax=2;"&vbcrlf)
		end if
	else
		response.write("fax=1;"&vbcrlf)
	end if
	
	if initdata(",mobile,",","&reglist&",")=1 then
		if initdata(",mobileb,",","&regList&",")=1 then
			response.Write("mobile=3;"&vbcrlf)
		else
			response.Write("mobile=2;"&vbcrlf)
		end if
	else
		response.write("mobile=1;"&vbcrlf)
	end if
	
	if initdata(",post,",","&reglist&",")=1 then
		if initdata(",postb,",","&regList&",")=1 then
			response.Write("post=3;"&vbcrlf)
		else
			response.Write("post=2;"&vbcrlf)
		end if
	else
		response.write("post=1;"&vbcrlf)
	end if
	
	if initdata(",comname,",","&reglist&",")=1 then
		if initdata(",comnameb,",","&regList&",")=1 then
			response.Write("comname=3;"&vbcrlf)
		else
			response.Write("comname=2;"&vbcrlf)
		end if
	else
		response.write("comname=1;"&vbcrlf)
	end if
	
	if initdata(",work,",","&reglist&",")=1 then
		if initdata(",workb,",","&regList&",")=1 then
			response.Write("work=3;"&vbcrlf)
		else
			response.Write("work=2;"&vbcrlf)
		end if
	else
		response.write("work=1;"&vbcrlf)
	end if
	
	if initdata(",mainkind,",","&reglist&",")=1 then
		if initdata(",mainkindb,",","&regList&",")=1 then
			response.Write("mainkind=3;"&vbcrlf)
		else
			response.Write("mainkind=2;"&vbcrlf)
		end if
	else
		response.write("mainkind=1;"&vbcrlf)
	end if
	
	if initdata(",mainpro,",","&reglist&",")=1 then
		if initdata(",mainprob,",","&regList&",")=1 then
			response.Write("mainpro=3;"&vbcrlf)
		else
			response.Write("mainpro=2;"&vbcrlf)
		end if
	else
		response.write("mainpro=1;"&vbcrlf)
	end if
	
	if initdata(",moshi,",","&reglist&",")=1 then
		if initdata(",moshib,",","&regList&",")=1 then
			response.Write("moshi=3;"&vbcrlf)
		else
			response.Write("moshi=2;"&vbcrlf)
		end if
	else
		response.write("moshi=1;"&vbcrlf)
	end if
	
	if initdata(",comdes,",","&reglist&",")=1 then
		if initdata(",comdesb,",","&regList&",")=1 then
			response.Write("comdes=3;"&vbcrlf)
		else
			response.Write("comdes=2;"&vbcrlf)
		end if
	else
		response.write("comdes=1;"&vbcrlf)
	end if
%>
var yzm,username,pass,pass2,ques,ans,usertrue,sex,email,tm,msn,tel,comaddr,street,fax
var mobile,post,comname,work,mainkind,mainpro,moshi,comdes
function getObj(objName){return(document.getElementById(objName));}

function check_yzm()
{
	//不验证
	if(yzm==1)
	{
		return true;
	}
	//取得值
	obj=getObj("Verifycode")
	if (yzm==2)
	{
		if (obj.value!="")
		{ 
			my_regex=/^(\d{4,5})$/
            if(!my_regex.test(obj.value)) 
            {
				document.all,yzmMsg.innerHTML=imgErr+"<font color='#FF0000'>请输入正确的验证码!</font>"
				//obj.focus();
				return false;
		    } 
			else
			{
				document.all,yzmMsg.innerHTML=imgOk;
				return true;
			}
		} 
		return true;
	}
	else
	{
		my_regex=/^(\d{4,5})$/
        if(!my_regex.test(obj.value)) 
        {
		document.all,yzmMsg.innerHTML=imgErr+"<font color='#FF0000'>请输入正确的验证码!</font>"
		//obj.focus();
		return false;
		} 
		else
		{
		document.all,yzmMsg.innerHTML=imgOk;
		return true;
		}
	}
}

function check_username()
{
	//不验证
	if(username==1)
	{
		return true;
	}
	//取得值
	obj=getObj("user")
	if (username==2)
	{
		if (obj.value!="")
		{ 
			my_regex=/^[a-zA-Z0-9]{6,20}$/;
            if(!my_regex.test(obj.value)) 
            {
				document.all,usernameMsg.innerHTML=imgErr+"<font color='#FF0000'>请输入正确的用户名!</font>"
				//obj.focus();
				return false;
		    } 
			else
			{
				document.all,usernameMsg.innerHTML=imgOk;
				return true;
			}
		} 
		return true;
	}
	else
	{
			my_regex=/^[a-zA-Z0-9]{6,20}$/;
            if(!my_regex.test(obj.value)) 
            {
				document.all,usernameMsg.innerHTML=imgErr+"<font color='#FF0000'>请输入正确的用户名!</font>"
				//obj.focus();
				return false;
		    } 
			else
			{
				document.all,usernameMsg.innerHTML=imgOk;
				return true;
			}
	}
}

function check_pass()
{
	//不验证
	if(pass==1)
	{
		return true;
	}
	//取得值
	obj=getObj("pass")
	if (pass==2)
	{
		if (obj.value!="")
		{ 
			my_regex=/^[a-zA-Z0-9]{6,20}$/;
            if(!my_regex.test(obj.value)) 
            {
				document.all,passMsg.innerHTML=imgErr+"<font color='#FF0000'>请输入正确的密码!</font>"
				//obj.focus();
				return false;
		    } 
			else
			{
				document.all,passMsg.innerHTML=imgOk;
				return true;
			}
		} 
		return true;
	}
	else
	{
			my_regex=/^[a-zA-Z0-9]{6,20}$/;
            if(!my_regex.test(obj.value)) 
            {
				document.all,passMsg.innerHTML=imgErr+"<font color='#FF0000'>请输入正确的密码!</font>"
				//obj.focus();
				return false;
		    } 
			else
			{
				document.all,passMsg.innerHTML=imgOk;
				return true;
			}
	}
}

function check_pass2()
{
	//不验证
	if(pass2==1)
	{
		return true;
	}
	//取得值
	obj=getObj("confirmpassword")
	obj1=getObj("pass")
	if (pass2==2)
	{
		if (obj.value!="")
		{ 
			
            if(obj.value!=obj1.value) 
            {
				document.all,pass2Msg.innerHTML=imgErr+"<font color='#FF0000'>确认密码输入不正确!</font>"
				//obj.focus();
				return false;
		    } 
			else
			{
				document.all,pass2Msg.innerHTML=imgOk;
				return true;
			}
		} 
		return true;
	}
	else
	{
			if(obj.value!=obj1.value) 
            {
				document.all,pass2Msg.innerHTML=imgErr+"<font color='#FF0000'>确认密码输入不正确!</font>"
				//obj.focus();
				return false;
		    } 
			else
			{
				document.all,pass2Msg.innerHTML=imgOk;
				return true;
			}
	}
}

function check_ques()
{
	//不验证
	if(ques==1)
	{
		return true;
	}
	//取得值
	obj=getObj("question")
	if (ques==2)
	{
		if (obj.value!="")
		{ 
			if(obj.value=="") 
            {
				document.all,quesMsg.innerHTML=imgErr+"<font color='#FF0000'>请选择密码提示问题!</font>"
				//obj.focus();
				return false;
		    } 
			else
			{
				document.all,quesMsg.innerHTML=imgOk;
				return true;
			}
		} 
		return true;
	}
	else
	{
			if(obj.value=="") 
            {
				document.all,quesMsg.innerHTML=imgErr+"<font color='#FF0000'>请选择密码提示问题!</font>"
				//obj.focus();
				return false;
		    } 
			else
			{
				document.all,quesMsg.innerHTML=imgOk;
				return true;
			}
	}
}

function check_ans()
{
	//不验证
	if(ans==1)
	{
		return true;
	}
	//取得值
	obj=getObj("answer")
	if (ans==2)
	{
		if (obj.value!="")
		{ 
			if(obj.value=="") 
            {
				document.all,ansMsg.innerHTML=imgErr+"<font color='#FF0000'>密码提示答案不可为空!</font>"
				//obj.focus();
				return false;
		    } 
			else
			{
				document.all,ansMsg.innerHTML=imgOk;
				return true;
			}
		} 
		return true;
	}
	else
	{
			if(obj.value=="") 
            {
				document.all,ansMsg.innerHTML=imgErr+"<font color='#FF0000'>密码提示答案不可为空!</font>"
				//obj.focus();
				return false;
		    } 
			else
			{
				document.all,ansMsg.innerHTML=imgOk;
				return true;
			}
	}
}

function check_usertrue()
{
	//不验证
	if(usertrue==1)
	{
		return true;
	}
	//取得值
	obj=getObj("name");
	if (usertrue==2)
	{
		if (obj.value!="")
		{ 
			if(obj.value=="") 
            {
				document.all,usertrueMsg.innerHTML=imgErr+"<font color='#FF0000'>真实姓名不可为空!</font>"
				//obj.focus();
				return false;
		    } 
			else
			{
				document.all,usertrueMsg.innerHTML=imgOk;
				return true;
			}
		} 
		return true;
	}
	else
	{
			if(obj.value=="") 
            {
				document.all,usertrueMsg.innerHTML=imgErr+"<font color='#FF0000'>真实姓名不可为空!</font>"
				//obj.focus();
				return false;
		    } 
			else
			{
				document.all,usertrueMsg.innerHTML=imgOk;
				return true;
			}
	}
}

function check_sex()
{
	return true;
}

function check_email()
{
	//不验证
	if(email==1)
	{
		return true;
	}
	//取得值
	obj=getObj("email")
	if (email==2)
	{
		if (obj.value!="")
		{ 
			my_regex=/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/
            if(!my_regex.test(obj.value)) 
            {
				document.all,emailMsg.innerHTML=imgErr+"<font color='#FF0000'>请输入正确的电子邮箱!</font>"
				//obj.focus();
				return false;
		    } 
			else
			{
				document.all,emailMsg.innerHTML=imgOk;
				return true;
			}
		} 
		return true;
	}
	else
	{
			my_regex=/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/
            if(!my_regex.test(obj.value)) 
            {
				document.all,emailMsg.innerHTML=imgErr+"<font color='#FF0000'>请输入正确的电子邮箱!</font>"
				//obj.focus();
				return false;
		    } 
			else
			{
				document.all,emailMsg.innerHTML=imgOk;
				return true;
			}
	}
}

function check_tm()
{
	//不验证
	if(tm==1)
	{
		return true;
	}
	//取得值
	obj=getObj("tm")
	if (tm==2)
	{
		if (obj.value!="")
		{ 
			my_regex=/^[0-9]{5,}$/;
            if(!my_regex.test(obj.value)) 
            {
				document.all,tmMsg.innerHTML=imgErr+"<font color='#FF0000'>即时通讯QQ号不正确!</font>"
				//obj.focus();
				return false;
		    } 
			else
			{
				document.all,tmMsg.innerHTML=imgOk;
				return true;
			}
		} 
		return true;
	}
	else
	{
			my_regex=/^[0-9]{5,}$/;
            if(!my_regex.test(obj.value)) 
            {
				document.all,tmMsg.innerHTML=imgErr+"<font color='#FF0000'>即时通讯QQ号不正确!</font>"
				//obj.focus();
				return false;
		    } 
			else
			{
				document.all,tmMsg.innerHTML=imgOk;
				return true;
			}
	}
}

function check_msn()
{
	//不验证
	if(msn==1)
	{
		return true;
	}
	//取得值
	obj=getObj("msn")
	if (msn==2)
	{
		if (obj.value!="")
		{ 
			my_regex=/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/
            if(!my_regex.test(obj.value)) 
            {
				document.all,msnMsg.innerHTML=imgErr+"<font color='#FF0000'>MSN不正确!</font>"
				//obj.focus();
				return false;
		    } 
			else
			{
				document.all,msnMsg.innerHTML=imgOk;
				return true;
			}
		} 
		return true;
	}
	else
	{
			my_regex=/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/
            if(!my_regex.test(obj.value)) 
            {
				document.all,msnMsg.innerHTML=imgErr+"<font color='#FF0000'>MSN不正确!</font>"
				//obj.focus();
				return false;
		    } 
			else
			{
				document.all,msnMsg.innerHTML=imgOk;
				return true;
			}
	}
}

function check_tel()
{
	//不验证
	if(tel==1)
	{
		return true;
	}
	//取得值
	obj=getObj("phonecountry")
	obj1=getObj("phonearea")
	obj2=getObj("phonenumber")
	if (tel==2)
	{
		if (obj.value!=""||obj1.value!=""||obj2.value!="")
		{ 
			my_regex=/^[0-9]{2,}$/;
            if(!my_regex.test(obj.value)) 
            {
				document.all,telMsg.innerHTML=imgErr+"<font color='#FF0000'>国家区号不正确!</font>"
				//obj.focus();
				return false;
		    } 
			my_regex=/^[0-9]{3,}$/;
            if(!my_regex.test(obj1.value)) 
            {
				document.all,telMsg.innerHTML=imgErr+"<font color='#FF0000'>城市区号不正确!</font>"
				//obj1.focus();
				return false;
		    } 
			my_regex=/^[0-9]{5,}$/;
            if(!my_regex.test(obj2.value)) 
            {
				document.all,telMsg.innerHTML=imgErr+"<font color='#FF0000'>号码不正确!</font>"
				//obj2.focus();
				return false;
		    } 
			document.all,telMsg.innerHTML=imgOk;
			return true;
		} 
		return true;
	}
	else
	{
			my_regex=/^[0-9]{2,}$/;
            if(!my_regex.test(obj.value)) 
            {
				document.all,telMsg.innerHTML=imgErr+"<font color='#FF0000'>国家区号不正确!</font>"
				//obj.focus();
				return false;
		    } 
			my_regex=/^[0-9]{3,}$/;
            if(!my_regex.test(obj1.value)) 
            {
				document.all,telMsg.innerHTML=imgErr+"<font color='#FF0000'>城市区号不正确!</font>"
				//obj1.focus();
				return false;
		    } 
			my_regex=/^[0-9]{5,}$/;
            if(!my_regex.test(obj2.value)) 
            {
				document.all,telMsg.innerHTML=imgErr+"<font color='#FF0000'>号码不正确!</font>"
				//obj2.focus();
				return false;
		    } 
			document.all,telMsg.innerHTML=imgOk;
			return true;
	}
}

function check_comaddr()
{
	return true;	
}

function check_street()
{
	//不验证
	if(street==1)
	{
		return true;
	}
	//取得值
	obj=getObj("address")
	if (street==2)
	{
		if (obj.value!="")
		{ 
            if(obj.value=="") 
            {
				document.all,streetMsg.innerHTML=imgErr+"<font color='#FF0000'>请填写街道地址!</font>"
				//obj.focus();
				return false;
		    } 
			else
			{
				document.all,streetMsg.innerHTML=imgOk;
				return true;
			}
		} 
		return true;
	}
	else
	{
			if(obj.value=="") 
            {
				document.all,streetMsg.innerHTML=imgErr+"<font color='#FF0000'>请填写街道地址!</font>"
				//obj.focus();
				return false;
		    } 
			else
			{
				document.all,streetMsg.innerHTML=imgOk;
				return true;
			}
	}
}

function check_fax()
{
	//不验证
	if(fax==1)
	{
		return true;
	}
	//取得值
	obj=getObj("Faxcountry")
	obj1=getObj("faxarea")
	obj2=getObj("faxnumber")
	if (fax==2)
	{
		if (obj.value!=""||obj1.value!=""||obj2.value!="")
		{ 
			my_regex=/^[0-9]{2,}$/;
            if(!my_regex.test(obj.value)) 
            {
				document.all,faxMsg.innerHTML=imgErr+"<font color='#FF0000'>国家区号不正确!</font>"
				//obj.focus();
				return false;
		    } 
			my_regex=/^[0-9]{3,}$/;
            if(!my_regex.test(obj1.value)) 
            {
				document.all,faxMsg.innerHTML=imgErr+"<font color='#FF0000'>城市区号不正确!</font>"
				//obj1.focus();
				return false;
		    } 
			my_regex=/^[0-9]{5,}$/;
            if(!my_regex.test(obj2.value)) 
            {
				document.all,faxMsg.innerHTML=imgErr+"<font color='#FF0000'>号码不正确!</font>"
				//obj2.focus();
				return false;
		    } 
			document.all,faxMsg.innerHTML=imgOk;
			return true;
		} 
		return true;
	}
	else
	{
			my_regex=/^[0-9]{2,}$/;
            if(!my_regex.test(obj.value)) 
            {
				document.all,faxMsg.innerHTML=imgErr+"<font color='#FF0000'>国家区号不正确!</font>"
			//	obj.focus();
				return false;
		    } 
			my_regex=/^[0-9]{3,}$/;
            if(!my_regex.test(obj1.value)) 
            {
				document.all,faxMsg.innerHTML=imgErr+"<font color='#FF0000'>城市区号不正确!</font>"
				//obj1.focus();
				return false;
		    } 
			my_regex=/^[0-9]{5,}$/;
            if(!my_regex.test(obj2.value)) 
            {
				document.all,faxMsg.innerHTML=imgErr+"<font color='#FF0000'>号码不正确!</font>"
				//obj2.focus();
				return false;
		    } 
			document.all,faxMsg.innerHTML=imgOk;
			return true;
	}
}

function check_mobile()
{
	//不验证
	if(mobile==1)
	{
		return true;
	}
	//取得值
	obj=getObj("mobile")
	if (mobile==2)
	{
		if (obj.value!="")
		{ 
			my_regex=/^(1[0-9]{10})|(01[0-9]{10})$/;
            if(!my_regex.test(obj.value)) 
            {
				document.all,mobileMsg.innerHTML=imgErr+"<font color='#FF0000'>手机号不正确!</font>"
				//obj.focus();
				return false;
		    } 
			document.all,mobileMsg.innerHTML=imgOk;
			return true;
		} 
		return true;
	}
	else
	{
			my_regex=/^(1[0-9]{10})|(01[0-9]{10})$/;
            if(!my_regex.test(obj.value)) 
            {
				document.all,mobileMsg.innerHTML=imgErr+"<font color='#FF0000'>手机号不正确!</font>"
				//obj.focus();
				return false;
		    } 
			document.all,mobileMsg.innerHTML=imgOk;
			return true;
	}
}

function check_post()
{
	//不验证
	if(post==1)
	{
		return true;
	}
	//取得值
	obj=getObj("post")
	if (post==2)
	{
		if (obj.value!="")
		{ 
			my_regex=/^[0-9]{3,}$/;
            if(!my_regex.test(obj.value)) 
            {
				document.all,postMsg.innerHTML=imgErr+"<font color='#FF0000'>邮政编码不正确!</font>"
				//obj.focus();
				return false;
		    } 
			document.all,postMsg.innerHTML=imgOk;
			return true;
		} 
		return true;
	}
	else
	{
			my_regex=/^[0-9]{3,}$/;
            if(!my_regex.test(obj.value)) 
            {
				document.all,postMsg.innerHTML=imgErr+"<font color='#FF0000'>邮政编码不正确!</font>"
				//obj.focus();
				return false;
		    } 
			document.all,postMsg.innerHTML=imgOk;
			return true;
	}
}

function check_comname()
{
	//不验证
	if(comname==1)
	{
		return true;
	}
	//取得值
	obj=getObj("qymc")
	if (comname==2)
	{
		if (obj.value!="")
		{ 
			if(obj.value=="") 
            {
				document.all,comnameMsg.innerHTML=imgErr+"<font color='#FF0000'>请填写公司名称!</font>"
				//obj.focus();
				return false;
		    } 
			document.all,comnameMsg.innerHTML=imgOk;
			return true;
		} 
		return true;
	}
	else
	{
			if(obj.value=="") 
            {
				document.all,comnameMsg.innerHTML=imgErr+"<font color='#FF0000'>请填写公司名称!</font>"
				//obj.focus();
				return false;
		    } 
			document.all,comnameMsg.innerHTML=imgOk;
			return true;
	}
}

function check_work()
{
	//不验证
	if(work==1)
	{
		return true;
	}
	//取得值
	obj=getObj("Zw")
	if (work==2)
	{
		if (obj.value!="")
		{ 
			if(obj.value=="") 
            {
				document.all,workMsg.innerHTML=imgErr+"<font color='#FF0000'>请填写您的职位!</font>"
				//obj.focus();
				return false;
		    } 
			document.all,workMsg.innerHTML=imgOk;
			return true;
		} 
		return true;
	}
	else
	{
			if(obj.value=="") 
            {
				document.all,workMsg.innerHTML=imgErr+"<font color='#FF0000'>请填写您的职位!</font>"
				//obj.focus();
				return false;
		    } 
			document.all,workMsg.innerHTML=imgOk;
			return true;
	}
}

function check_mainkind()
{
	return true;
}

function check_mainpro()
{
	//不验证
	if(mainpro==1)
	{
		return true;
	}
	//取得值
	obj=getObj("productionService")
	obj1=getObj("productionService2")
	obj2=getObj("productionService3")
	if (mainpro==2)
	{
		if (obj.value!=""||obj1.value!=""||obj2.value!="")
		{ 
			if(obj.value!=""||obj1.value!=""||obj2.value!="") 
            {
				document.all,mainproMsg.innerHTML=imgOk;
				return true;
		    } 
			document.all,mainproMsg.innerHTML=imgErr+"<font color='#FF0000'>请填写主营产品/服务!</font>"
			//obj.focus();
			return false;
		} 
		return true;
	}
	else
	{
			if(obj.value!=""||obj1.value!=""||obj2.value!="") 
            {
				document.all,mainproMsg.innerHTML=imgOk;
				return true;
		    } 
			document.all,mainproMsg.innerHTML=imgErr+"<font color='#FF0000'>请填写主营产品/服务!</font>"
			//obj.focus();
			return false;
	}
}

function check_moshi()
{
	return true;
}

function check_comdes()
{
	//不验证
	if(comdes==1)
	{
		return true;
	}
	//取得值
	obj=getObj("qyjj")
	if (comdes==2)
	{
		if (obj.value!="")
		{ 
			if(obj.value.length>2000||obj.value.length<50)
            {
				document.all,comdesMsg.innerHTML=imgErr+"<font color='#FF0000'>公司简介要求在50-2000字之间!</font>"
				//obj.focus();
				return false;
		    } 
			document.all,comdesMsg.innerHTML=imgOk;
			return true;
		} 
		return true;
	}
	else
	{
			if(obj.value.length>2000||obj.value.length<50)
            {
				document.all,comdesMsg.innerHTML=imgErr+"<font color='#FF0000'>公司简介要求在50-2000字之间!</font>"
				//obj.focus();
				return false;
		    } 
			document.all,comdesMsg.innerHTML=imgOk;
			return true;
	}
}
 </script>
 <FORM name="form" action="<%=HOPE_InstallDir%>login/Regwrite.asp?action=save" method="post" onSubmit="return checkcontent()">
  <table border="1" bordercolor="#FFF2EE" cellpadding="0" cellspacing="0" width="<%=HOPE_PageWidth%>" align="center" style="text-align:left ">
    <tr>
      <td><table   border="0" cellpadding="0" align="center" cellspacing="0"  width="<%=HOPE_PageWidth%>">
          <tr>
            <td height="30" bgcolor="#F6F6F6">&nbsp;<b><%=WebName%></b>欢迎您的光临！ </td>
          </tr>
      </table>
          <div class=itemActived><br />
            &nbsp;&nbsp;&nbsp; 注册须知：&nbsp;&nbsp;<img height=15 src="images/icon_smallone.gif" width=15 align=absMiddle /> 选择注册会员类型/阅读协议 &nbsp;&nbsp;<img height=15 src="images/icon_smalltwoon.gif" width=15 align=absMiddle /> 填写注册信息&nbsp; <img height=15 src="images/icon_bigthree.gif" width=15 align=absMiddle /> 待审核(注册成功) &nbsp;<br />
            <br />
            &nbsp;&nbsp;&nbsp; <font color="#FF0000"><b>→</b></font>发布商机信息、产品信息、公司形象展示、模版网站等
            <hr size="1"  color="#CCCCCC" noshade="noshade" />
            &nbsp;&nbsp;&nbsp;&nbsp;(打<font color=#ff0000>*</font> 为必填项) <br />
            <br />
          </div>
        &nbsp;&nbsp;&nbsp;&nbsp;请认真、仔细地填写以下信息，严肃的商业信息有助于您获得别人的信任，结交潜在的商业伙伴，获取商业机会！<br />
          <table cellspacing=0 cellpadding=3 width="100%"   border=0 >
            <tr>
              <td colspan="2" style="word-break:break-all" height="35" bgcolor="#EFEFEF" ><font  color="#0066CC">∵ ∵ </font><font color="#000000"><b>第二步： 请填写【<font color="#FF0000"><%=gradename%></font>】的注册内容：</b></font> </td>
            </tr>
            <tr>
              <td colspan="2" height="1" bgcolor="#CCCCCC"></td>
            </tr>
            <br />
            <tr>
              <td colspan="2" bgcolor="#F6F6F6" height="2"></td>
            </tr>
          </table>
        <table border="0" cellpadding="0" cellspacing="0" width="<%=HOPE_PageWidth%>" align="center"  bgcolor="#EFEFEF">
            <tr>
              <td height="30">&nbsp;◆<font color="#CC3300"><b>会员登录名和密码</b></font>
                  <input type="hidden" name="denjiid" value="<%=roleid%>" maxlength="5" />
                  <input type="hidden" name="sh" value="<%=shenhe%>" maxlength="10" />
                <input type="hidden" name="foldersize" value="<%=foldersize%>" maxlength="10" />
              </td>
            </tr>
        </table>
        <!---------------------------验证码-------------------------------->
          <div  id="yzm" <%if initdata("yzm",reglist)=0 then  %> style="display:none" <%end if%>>
            <table cellspacing=0 cellpadding=3 width="100%" bgcolor=#f1f1f1 border=0>
              <tr  bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#D7E3F3'">
                <td nowrap align=right width=141 ><b>验证码：</b></td>
                <td   width="180"><input name="Verifycode" tabindex=0   onkeyup="value=value.replace(/[^\d]/g,'') " size=8 maxlength="5" tonbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" class="mailboxbig"  style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:40;height:19" onblur="javascript:check_yzm();"/>
                    <img src="../vCode.asp?" onclick="this.src+=Math.random()" alt="图片看不清？点击重新得到验证码" style="cursor:hand;" />
                    </td>
                <td align="left">
                    <div id="yzmMsg"></div><div     id="yzmb" <%if initdata("yzmb",reglist)=0 then  %> style="display:none" <%end if%>> <font color="#FF0000">&nbsp;*&nbsp;</font> </div></td>
              </tr>
            </table>
          </div>
        <!---------------------------验证码-------------------------------->
          <!---------------------------会员登录名-------------------------------->
          <table cellspacing=0 cellpadding=3 width="100%" bgcolor=#f1f1f1 border=0>
            <tr  bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#D7E3F3'">
              <td width=141 align=right valign="top" nowrap  ><b> <font 
color=#CC3300>会员登录名</font>：</b></td>
              <td  ><input name="user" value="" size="27"  maxlength="20"  onblur="this.value=this.value.replace(/\s/g,'');check_username();"   style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:140;height:19"/>
                  <font color="#FF0000">&nbsp;*&nbsp;</font>
                    <div id="usernameMsg"></div> <br />
                  <div id="zhu"  style="display:none; background-color: #FFCC99; color:#333333;  "></div>
                <font class=s>&nbsp;&nbsp;&nbsp;&nbsp;</font><font class=S color=#9a9a9a>请输入6-20位,请使用英文(a-z、A-Z)、数字(0-9) ( 建议与公司名相关,易记,如“成都易想网络技术有限公司”的登录名是<font color="#990000">cdyxnet</font>)</font> </td>
            </tr>
            <!---------------------------会员登录名-------------------------------->
            <!---------------------------密码-------------------------------->
            <tr   >
              <td  ></td>
              <td></td>
            </tr>
            <tr  bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#D7E3F3'">
              <td align=right  valign="top"><b>登录密码：</b></td>
              <td  ><input   type="password" maxlength=20 size=30   name="pass" onblur="this.value=this.value.replace(/\s/g,'');check_pass();"    style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:140;height:19"/>
                  <font color="#FF0000">&nbsp;*&nbsp;<div id="passMsg"></div></font>
                  <div id="passdiv"  style="display:none; background-color: #FFCC99; color:#333333;  "></div>
                <br />
                  <font class=s>&nbsp;&nbsp;&nbsp;&nbsp;</font><font class=S color=#9a9a9a>请输入6-20位，请使用英文(a-z、A-Z))、数字(0-9)注意区分大小写； <br />
                  <font class=s>&nbsp;&nbsp;&nbsp;&nbsp;</font>密码不能与登录名相同；易记；难猜</font></td>
            </tr>
            <tr  bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#D7E3F3'">
              <td  nowrap align=right ><b>确认密码：</b></td>
              <td  ><input   type="password" maxlength=20 size=30  name="confirmpassword"   onblur="javascript:check_pass2();" style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:140;height:19" />
                  <font color="#FF0000">&nbsp;*&nbsp;<div id="pass2Msg"></div></font>
                  <div id="passtoodiv"  style="display:none; background-color: #FFCC99; color:#333333;  "></div></td>
            </tr>
          </table>
		  <!---------------------------问题验证-------------------------------->
		  <div id="wtyz"  style="display:<%if issafe=0 then%>none<%end if%>;">
		  <table cellspacing=0 cellpadding=3 width="100%" bgcolor=#f1f1f1 border=0>
            <tr  bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#D7E3F3'">
              <td  nowrap align=right width=141><strong>请回答注册问题：</strong></td>
              <td height="25"  ><%call GetAskQuestion()%></td>
            </tr>
            <tr  bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#D7E3F3'">
              <td  nowrap align=right ><strong>你的回答是：</strong></td>
              <td  ><input   type="text" maxlength="20" size="30"  name="safenet" style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:140;height:19" /> 
                <span class="STYLE1">*</span> </td>
            </tr>
			</table>
			</div>
        <!---------------------------密码-------------------------------->
          <!---------------------------密码提示问题-------------------------------->
          <div id="ques"  <%if initdata("ques",reglist)=0 then  %> style="display:none" <%end if%>>
            <table cellspacing=0 cellpadding=3 width="100%" bgcolor=#f1f1f1 border=0>
              <tr  bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#D7E3F3'">
                <td  width=141   height="30"  align="right" ><b>密码提示问题：</b></td>
                <td  width=144 ><select           size=1 name="question" onblur="javascript:check_ques();">
                    <option value="" selected>请选择任一问题</option>
                    <option        value="你在哪所中学读初中？"  >你在哪所中学读初中？</option>
                    <option      value="你的宠物叫什么名字？" >你的宠物叫什么名字？</option>
                    <option      value="你最喜欢的音乐是？"  >你最喜欢的音乐是？</option>
                    <option      value="你最喜欢的球队是？"  >你最喜欢的球队是？</option>
                    <option      value="你最喜欢的书是？"  >你最喜欢的书是？</option>
                    <option         value="你最好的朋友是？" >你最好的朋友是？</option>
                    <option        value="你的出生年月是？"  >你的出生年月是？</option>
                    <option         value="你爱人的名字是？" >你爱人的名字是？</option>
                    <option         value="你父亲的名字是？" >你父亲的名字是？</option>
                    <option         value="你母亲的名字是？"  >你母亲的名字是？</option>
                </select></td>
                <td><div     id="quesb" <%if initdata("quesb",reglist)=0 then  %> style="display:none" <%end if%>> <font color="#FF0000">&nbsp;*&nbsp;</font> </div><div id="quesMsg"></div></td>
              </tr>
            </table>
        </div>
        <div  id="ans" <%if initdata("ans",reglist)=0 then  %> style="display:none" <%end if%>>
            <table cellspacing=0 cellpadding=3 width="100%" bgcolor=#f1f1f1 border=0>
              <tr  bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#D7E3F3'">
                <td width=141 align=right  ><b>密码提示答案：</b></td>
                <td width="144"><input name="answer" value="" size=23  onblur="javascript:check_ans();"  maxlength=50   style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:140;height:19" />
                </td>
                <td><div     id="ansb" <%if initdata("ansb",reglist)=0 then  %> style="display:none" <%end if%>> <font color="#FF0000">&nbsp;*&nbsp;</font> </div>
                <div id="ansMsg"></div></td>
                <td><font color=#9a9a9a>万一您忘记了密码，可以通过“提示问题”和答案找回。</font> </td>
              </tr>
              <!---------------------------密码提示问题-------------------------------->
            </table>
        </div>
        <!--===========================================================================================---->
          <table border="0" cellpadding="0" cellspacing="0" width="<%=HOPE_PageWidth%>" align="center"  bgcolor="#EFEFEF">
            <tr>
              <td height="30">&nbsp;◆<font color="#CC3300"><b>姓名与联系方式</b></font> </td>
            </tr>
          </table>
        <div  id="usertrue" <%if initdata("usertrue",reglist)=0 then  %> style="display:none" <%end if%>>
            <table cellspacing=0 cellpadding=3 width="100%" bgcolor=#f1f1f1 border=0 class=outborder>
              <!---------------------------真实姓名-------------------------------->
              <tr  bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#D7E3F3'">
                <td nowrap align=right width=140   height="30"><b>真实姓名：</b></td>
                <td width="150" ><input name="name" class=f2 value="" size=22 maxlength=20   style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:140;height:19" onblur="javascript:check_usertrue();"/>
                </td>
                <td><div     id="usertrueb" <%if initdata("usertrueb",reglist)=0 then  %> style="display:none" <%end if%>> <font color="#FF0000">&nbsp;*&nbsp;</font> </div><div id="usertrue"></div></td>
              </tr>
            </table>
        </div>
        <!---------------------------真实姓名-------------------------------->
          <!---------------------------性别-------------------------------->
          <div  id="sex" <%if initdata("sex",reglist)=0 then  %> style="display:none" <%end if%>>
            <table cellspacing=0 cellpadding=3 width="100%" bgcolor=#f1f1f1 border=0 class=outborder>
              <tr  bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#D7E3F3'">
                <td align=right  width=140 height="30" ><b>性别 ：</b></td>
                <td  width="150" ><input name="ch" type=radio value="先生" checked />
                    <font class=s>先生 &nbsp;</font>
                    <input type=radio value="女士" name="ch" />
                    <font class=s>女士 &nbsp;</font> </td>
                <td><div   id="sexb" <%if initdata("sexb",reglist)=0 then  %> style="display:none" <%end if%>><font color="#FF0000">&nbsp;*&nbsp;</font></div></td>
              </tr>
            </table>
          </div>
        <!---------------------------性别-------------------------------->
          <!---------------------------电子邮箱-------------------------------->
          <div  id="email1" <%if initdata("email",reglist)=0 then  %> style="display:none" <%end if%>>
            <table cellspacing=0 cellpadding=3 width="100%" border=0 class=outborder>
              <tr  bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#D7E3F3'">
                <td   valign="top" align=right width="141"  height="30" ><b>电子邮箱：</b></td>
                <td   ><input name="email" value="" size=38 maxlength=50   onblur="this.value=this.value.replace(/\s/g,'');check_email();"   style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:160;height:19" /></td>
                <td width="345"><div   id="emailb" <%if initdata("emailb",reglist)=0 then  %> style="display:none;" <%end if%>><font color="#FF0000">&nbsp;*&nbsp;</font></div><div id="emailMsg"></div></td>
              </tr>
              <tr>
                <td></td>
                <td colspan="2"><div id="emaildiv"  style="display:none; background-color: #FFCC99; color:#333333;  "></div>
                    <span class="S">非常重要！</span> <font class=S color=#9a9a9a>这是客户与您联系的首选方式，请一定填写真实。</font></td>
              </tr>
            </table>
          </div>
        <!---------------------------电子邮箱-------------------------------->
          
        <!---------------------------即时通讯TM号-------------------------------->
          <div  id="tm1" <%if initdata("tm",reglist)=0 then  %> style="display:none" <%end if%>>
		  
            <table cellspacing=0 cellpadding=3 width="100%"  border=0 class=outborder>
              <tr  bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#D7E3F3'">
                <td align=right valign="top"  width="140"><font color="cc330"><b>即时通讯QQ号：</b></font></td>
                <td   ><input name="tm" type="text" id="tm" value="" size="23" maxlength="20" onkeyup="value=value.replace(/[^\d]/g,'') " style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:140;height:19" onblur="javascript:check_tm();"/>
                    <br />
                  <a href="http://freeqqm.qq.com/?ADUIN=0&ADSESSION=0&ADTAG=CLIENT.QQ.1805_LoginWindow.0"  target="_blank"  ><font color="#006699">注册QQ帐号</font></a></td>
                <td width="446"><div   id="tmb" <%if initdata("tmb",reglist)=0 then  %> style="display:none" <%end if%>><font color="#FF0000">&nbsp;*&nbsp;</font></div>
                <div id="tmMsg"></div>
                </td>
              </tr>
              <tr>
                <td></td>
                <td colspan="2">&nbsp;<font class=S color=#cc3300>建议使用！</font><font class=S color=#9a9a9a>这是客户直接与您即时沟通的重要工具。</font><br />
                  &nbsp;<span class="s">请填写您的QQ号码</span></td>
              </tr>
            </table>
          </div>
        <!---------------------------即时通讯TM号-------------------------------->
        <!---------------------------MSN------------------------------->
          <div  id="msn1" <%if initdata("msn",reglist)=0 then  %> style="display:none" <%end if%>>
		  
            <table cellspacing=0 cellpadding=3 width="100%"  border=0 class=outborder>
              <tr  bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#D7E3F3'">
                <td  align="right"  valign="top" width="140"><font color="cc330"><b>MSN：</b></font></td>
                <td   ><input type="text" name="msn" value="" size="23" maxlength="40"  onblur="this.value=this.value.replace(/\s/g,'');check_msn();"    style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:160;height:19"/>
                  <a href="https://accountservices.passport.net/reg.srf?id=9&cbid=956&sl=1&lc=2052"  target="_blank"  ><font color="#006699">注册MSN</font></a> </td>
                <td width="446"><div   id="msnb" <%if initdata("msnb",reglist)=0 then  %> style="display:none" <%end if%>><font color="#FF0000">&nbsp;*&nbsp;</font></div>
                <div id="msnMsg"></div>
                </td>
              </tr>
              <tr>
                <td></td>
                <td colspan="2"><div id="msndiv"  style="display:none; background-color: #FFCC99; color:#333333;  "></div>
                  ?<font class=S color=#cc3300>建议使用！</font><font class=S color=#9a9a9a>这是客户直接与您即时沟通的重要工具。</font><br />
                  &nbsp;即填写邮箱地址；本站使用MSN为<font color="cc3300">即时通讯</font>工具！</td>
              </tr>
            </table>
          </div>
        <!---------------------------MSN------------------------------->
          
        <!---------------------------固定电话------------------------------->
          <div  id="tel1" <%if initdata("tel",reglist)=0 then  %> style="display:none" <%end if%>>
		  
            <table cellspacing=0 cellpadding=3 width="100%"  border=0 class=outborder>
              <tr  bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#D7E3F3'">
                <td align=right  width="140"  height="30"><b>固定电话：</b></td>
                <td valign="top" width="512"> 国家区号：
                    <input class=f2 maxlength=8 size=8 value="86" name="phonecountry"t onkeyup="value=value.replace(/[^\d]/g,'') " onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"   style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:50;height:19" onblur="javascript:check_tel();" />
                  &nbsp;&nbsp;城市区号：
                  <input name="phonearea" class=f2 onkeyup="value=value.replace(/[^\d]/g,'') " value="" size=8 maxlength=4 tonbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"   style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:50;height:19" onblur="javascript:check_tel();" />
                  &nbsp;&nbsp;号码：
                  <input name="phonenumber" class=f2 onkeyup="value=value.replace(/[^\d]/g,'') " value="" size=16 maxlength=10 tonbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"   style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:140;height:19" onblur="javascript:check_tel();" />
                </td>
                <td><div   id="telb" <%if initdata("telb",reglist)=0 then  %> style="display:none" <%end if%>><font color="#FF0000">&nbsp;*&nbsp;</font></div>
                <div id="telMsg"></div>
                </td>
              </tr>
            </table>
          </div>
        <!---------------------------固定电话------------------------------->
          <!---------------------------公司所在地------------------------------->
          <div  id="comaddr1" <%if initdata("comaddr",reglist)=0 then  %> style="display:none" <%end if%>>
		  
            <table cellspacing=0 cellpadding=3 width="100%"  border=0 class=outborder>
              <tr  bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#D7E3F3'">
                <td align=right width="140" ><b>公司所在地：</b> </td>
                <td ><table id=div1 cellspacing=0 cellpadding=3 width="100%" border=0>
                    <tr>
                      <td   ><select style="WIDTH: 90px" onchange=javascript:changeCountry1(this); name=country1>
                        </select>
                          <select style="WIDTH: 60px" onchange=changeProvince(this); name=province>
                            <option value="" selected>省份</option>
                          </select>
                          <select name=city>
                            <option value="" selected>地级城市</option>
                          </select>
                          <script language=javascript src="<%=HOPE_InstallDir%>js/area1.js"   purpose="INITIALIZER"></script>
                          <script language=javascript>
    <!--
 	//设置国家1的缺省值
 	 for (var i=0;i<5;i++)
	  {
 		if(country1form.options[i].value == '<%=Replace_Text(request.form("country1"))%>')
		  {
 		    country1form.options[i].selected=true;
 		  }
 	  }
  	 for (var i=0;i<catArr1.length;i++)
	  {
 		catform.options[i+1]=new Option(catArr1[i].title,catArr1[i].id);
 		//设置省选择框的选择值
 		 if(catform.options[i+1].value == '<%=Replace_Text(request.form("province"))%>')
		 {
 		  catform.options[i+1].selected=true;
 		 }
 	   }
 	  changeProvince(catform);
 	  var len = boardform.options.length;
 	 for (var i=0;i<len;i++)
	   {
 	     //设置城市选择框的选择值
 	     if(boardform.options[i].value == '<%=Replace_Text(request.form("city"))%>') 
		  {
 		    boardform.options[i].selected=true;
 		   }
 	    }
  -->
      </script>
                      </td>
                      <td><div   id="comaddrb" <%if initdata("comaddrb",reglist)=0 then  %> style="display:none" <%end if%>><font color="#FF0000">&nbsp;*&nbsp;</font> </div></td>
                    </tr>
                </table></td>
              </tr>
            </table>
          </div>
        <!---------------------------公司所在地------------------------------->
          <!---------------------------街道地址------------------------------->
          <div  id="street1" <%if initdata("street",reglist)=0 then  %> style="display:none" <%end if%>>
            <table cellspacing=0 cellpadding=3 width="100%"  border=0 class=outborder>
              <tr  bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#D7E3F3'">
                <td align=right width="140" valign="top" ><b>街道地址：</b></td>
                <td    ><input name="address" title=请补充后面的详细街道地址 value="" size=38  maxlength=50   onblur="javascript:check_street()"   style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:250;height:19" />
                    <font class=s color=#9a9a9a>填写县（区）、街道、门牌号</font> </td>
                <td><div   id="streetb" <%if initdata("streetb",reglist)=0 then  %> style="display:none" <%end if%>><font color="#FF0000">&nbsp;*&nbsp;</font> </div>
                <div id="streetMsg"></div>
                </td>
              </tr>
            </table>
          </div>
        <!---------------------------街道地址------------------------------->
          <!---------------------------传真------------------------------->
          <div  id="fax1" <%if initdata("fax",reglist)=0 then  %> style="display:none" <%end if%>>
            <table cellspacing=0 cellpadding=0 width="100%"  border=0 class=outborder>
              <tr  bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#D7E3F3'">
                <td align=right  valign="top"  width="140"><b>传真：</b></td>
                <td  ><table cellspacing=2 cellpadding=0 border=0>
                    <tr>
                      <td valign="top"><font class=S>国家区号：</font>
                          <input   maxlength=4 size=8 value=86 name="faxcountry"t onkeyup="value=value.replace(/[^\d]/g,'') " onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"   style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:50;height:19" onblur="check_fax();" /></td>
                      <td>&nbsp;&nbsp;<font class=S>城市区号：</font>
                          <input 
name="faxarea"   onkeyup="value=value.replace(/[^\d]/g,'') " value="" size=8 maxlength=4 tonbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"   style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:50;height:19" onblur="check_fax();" /></td>
                      <td colspan=2>&nbsp;&nbsp;<font class=S>号码：</font>
                          <input 
name="faxnumber"  onkeyup="value=value.replace(/[^\d]/g,'') " value="" size=18 maxlength=15 tonbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"   style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:140;height:19" onblur="check_fax();" /></td>
                      <td><div   id="faxb" <%if initdata("faxb",reglist)=0 then  %> style="display:none" <%end if%>><font color="#FF0000">&nbsp;*&nbsp;</font> </div>
                      <div id="faxMsg"></div>
                      </td>
                    </tr>
                </table></td>
              </tr>
            </table>
          </div>
        <!---------------------------传真------------------------------->
          <!---------------------------手机------------------------------->
          <div  id="mobile1" <%if initdata("mobile",reglist)=0 then  %> style="display:none" <%end if%>>
            <table cellspacing=0 cellpadding=1 width="100%"  border=0 class=outborder>
              <tr  bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#D7E3F3'" valign=top>
                <td align=right  width="140" height="30"><b>手机：</b></td>
                <td   ><input name="mobile" onkeyup="value=value.replace(/[^\d]/g,'') " value="" size=39 maxlength=18 tonbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"   style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:140;height:19" onblur="check_mobile();"/></td>
                <td><div   id="mobileb" <%if initdata("mobileb",reglist)=0 then  %> style="display:none" <%end if%>><font color="#FF0000">&nbsp;*&nbsp;</font> </div>
                <div id="mobileMsg"></div></td>
              </tr>
            </table>
          </div>
        <!---------------------------手机------------------------------->
          <!---------------------------邮政编码------------------------------->
          <div  id="post1" <%if initdata("post",reglist)=0 then  %> style="display:none" <%end if%>>
            <table cellspacing=0 cellpadding=1 width="100%"  border=0 class=outborder>
              <tr  bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#D7E3F3'">
                <td align=right  width="140" height="30" ><b>邮政编码：</b></td>
                <td    align="left" ><input name="post" onkeyup="value=value.replace(/[^\d]/g,'') " value="" size=39 maxlength=10 tonbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"   style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:140;height:19" onblur="check_post();" /></td>
                <td><div   id="postb" <%if initdata("postb",reglist)=0 then  %> style="display:none" <%end if%>><font color="#FF0000">&nbsp;*&nbsp;</font> </div>
                <div id="postMsg"></div>
                </td>
              </tr>
              <!---------------------------邮政编码------------------------------->
            </table>
          </div>
          
        <!---------------------------贵公司名称------------------------------->
          <div  id="comname1" <%if initdata("comname",reglist)=0 then  %> style="display:none" <%end if%>>
		  <table border="0" cellpadding="0" cellspacing="0" width="<%=HOPE_PageWidth%>" align="center"  bgcolor="#EFEFEF">
            <tr>
              <td height="30">&nbsp;◆<font color="#CC3300"><b>公司名称与主营业务</b></font> </td>
            </tr>
          </table>
            <table width="<%=HOPE_PageWidth%>" border=0 align="center" cellpadding=0 cellspacing=0 bgcolor=#f1f1f1>
              <tr   bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#D7E3F3'">
                <td width=140 align=right valign="top"  ><b>贵公司名称：</b></td>
                <td colspan="2" valign="top"  ><input name="qymc"  value="" size=43  maxlength=30  onblur="this.value=this.value.replace(/\s/g,'');check_comname();"   style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:180;height:19" />
                    <font color="#FF0000">&nbsp;*&nbsp;</font>
                    <div id="comdiv"  style="display:none; background-color: #FFCC99; color:#333333;  "></div>
                    <div id="comnameMsg"></div>
                  <br />
                  &nbsp;&nbsp;&nbsp;<font class=S color=#9a9a9a>请尽量用<font color=#cc3300>中文</font>填写在工商局注册的公司/商号全称；<br />
                    &nbsp;&nbsp;
                    无商号的个体经营者填写执照上的姓名，如：张三（个体经营）</font> </td>
              </tr>
            </table>
          </div>
        <!---------------------------贵公司名称------------------------------->
          <!---------------------------您的职位------------------------------->
          <div  id="work1" <%if initdata("work",reglist)=0 then  %> style="display:none" <%end if%>>
            <table width="<%=HOPE_PageWidth%>" border=0 align="center" cellpadding=0 cellspacing=0 bgcolor=#f1f1f1>
              <tr   bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#D7E3F3'">
                <td align=right  width="140" height="25"><b>您的职位：</b></td>
                <td    ><input name="zw" value="" size=43 maxlength=16 onblur="this.value=this.value.replace(/\s/g,'');check_work();"   style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:140;height:19" /></td>
                <td><div   id="workb" <%if initdata("workb",reglist)=0 then  %> style="display:none" <%end if%>><font color="#FF0000">&nbsp;*&nbsp;</font> </div>
                <div id="workMsg"></div>
                    <br /></td>
              </tr>
            </table>
          </div>
		  
<div  id="typekind" <%if initdata("mainkind",reglist)=0 then  %> style="display:none" <%end if%>>
        <!---------------------------您的职位------------------------------->
          <table cellspacing=0 cellpadding=3 width="100%" bgcolor=#f1f1f1 border=0 class=outborder>
            <tr>
              <td bgcolor=#FDFDFD width="150"></td>
              <td background=images/free_line_bg.gif bgcolor="#FDFDFD"></td>
            </tr>
			  <TD height="25" bgColor=#eff7ff style="text-align:right;"><B>主营行业：</B></TD>
<TD bgColor=#ffffde><div style="BORDER-RIGHT: #dac010 1px solid; PADDING-RIGHT: 6px; BORDER-TOP: #dac010 1px solid; PADDING-LEFT: 6px; PADDING-BOTTOM: 6px; BORDER-LEFT: #dac010 1px solid; PADDING-TOP: 6px; BORDER-BOTTOM: #dac010 1px solid"><font color=#ff0000 id="mainkindb" <%if initdata("mainkindb",reglist)=0 then  %> style="display:none;" <%end if%>>*</font>请选择完整的行业大类和子类，并添加为主营行业，最多可添加 
                  <FONT color=#ff0000><B>6</B></FONT> 个！</div></TD>
</TR>
<TR>
  <TD height="25" bgColor=#eff7ff>&nbsp;</TD>
  <TD bgColor=#ffffde>
    <SELECT id=topCatFormKey 
                  style="WIDTH: 120px; height:120px;" onchange=onChangeTopCategory() size=8 
                  name=topCatFormKey>
    </SELECT> 
    <SELECT id=secondCatFormKey 
                  style="WIDTH: 120px; height:120px;" onchange=onChangeSecondCategory() size=8 
                  name=secondCatFormKey>
    </SELECT> 
    <SELECT id=leafCatFormKey 
                  style="WIDTH: 120px; height:120px;" onchange=onChangeLeafCategory() size=8 
                  name=leafCatFormKey>
    </SELECT>
  <input name="topCatFormKeyValue" type="hidden" id="topCatFormKeyValue" value="">
  <input name="secondCatFormKeyValue" type="hidden" id="secondCatFormKeyValue" value="">
  <input name="leafCatFormKeyValue" type="hidden" id="leafCatFormKeyValue" value="">
  </TD>
</TR>
<TR>
  <TD height="25" bgColor=#eff7ff>&nbsp;</TD>
  <TD bgColor=#ffffde style=""><DIV style="margin-left:120px;">
                  <P><IMG 
                  src="../image/orangedown14x19.gif" name="img_leadtype" width=14 height=19 id=img_leadtype style="margin-left:60px;"><BR>
                    <INPUT onClick="doSubmit1('select');setSelectID();addValue();" type=button value=添加为主营行业 name=Submit3> 
                <BR><IMG 
                  src="../image/orangedown14x19.gif" name="img_leadtype" width=14 height=19 id=img_leadtype style="margin-left:60px;">                </P>
  </DIV></TD>
</TR>
<TR>
  <TD height="25" bgColor=#eff7ff><strong>您选择的主营行业是：</strong> </TD>
  <TD bgColor=#ffffde>
  <SELECT style="WIDTH: 365px; height:120px;" size=8 name=right_category_id>
  </SELECT>
  <BR>如选择有误，选择对应行业,点击“删除”即可：<INPUT onClick="doSubmit1('deselect');setSelectID();" type=button value=删除 name=Submit22>
  <input name="selectID" type="hidden" id="selectID" value=""></TD>
</TR>
<SCRIPT language=JavaScript src="../js/changehope.js"></SCRIPT>
<SCRIPT language=JavaScript src="../js/allCategorys.js"></SCRIPT>
<SCRIPT language=JavaScript>
//行业类别标签
function addValue()
{
document.form.topCatFormKeyValue.value=document.form.topCatFormKey.value;
document.form.secondCatFormKeyValue.value=document.form.secondCatFormKey.value;
document.form.leafCatFormKeyValue.value=document.form.leafCatFormKey.value;
}
//调用initTopCategoryForm函数向列表中加入数据
initTopCategoryForm();
//setSelectID();
var selectID=split(document.form.selectID.value,"|");
for(i=0;i<selectID.length;i++)
{
	var GetValue=split(selectID[i],"&");
	document.form.right_category_id.options[document.form.right_category_id.length] =  new Option(GetValue[1],GetValue[0]);
}
</SCRIPT>
</table>
        <!---------------------------主营行业------------------------------->
</div>
          <!---------------------------主营产品/服务------------------------------->
          <div  id="mainpro1" <%if initdata("mainpro",reglist)=0 then  %> style="display:none" <%end if%>>
            <table width="<%=HOPE_PageWidth%>" border=0 align="center" cellpadding=1 cellspacing=0  >
              <tr   bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#D7E3F3'">
                <td align=right   valign="top" width="140"><b>主营产品/服务：</b></td>
                <td width="381"><input name=productionService value="" size=11 maxlength=20  onblur="this.value=this.value.replace(/\s/g,''); check_mainpro();"   style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:100;height:19" />
                  ,
                  <input name=productionService2 value="" size=11 maxlength=20 onblur="this.value=this.value.replace(/\s/g,''); check_mainpro() "   style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:100;height:19" />
                  ,
                  <input name=productionService3 value="" size=11 maxlength=20 onblur="this.value=this.value.replace(/\s/g,'');  check_mainpro()"   style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:100;height:19" />
                  <input type=hidden name=p_z_Z_productionService />
                  <br />
                  <font class=S color=#9a9a9a>3个主要相关产品名/服务名，最少要填一个,例如：太阳帽，布料，拉链</font></td>
                <td><div   id="mainprob" <%if initdata("mainprob",reglist)=0 then  %> style="display:none" <%end if%>><font color="#FF0000">&nbsp;*&nbsp;</font> </div>
                <div id="mainproMsg"></div>
                </td>
              </tr>
            </table>
          </div>
        <!---------------------------主营产品/服务------------------------------->
          <!---------------------------经营模式------------------------------->
          <div  id="moshi1" <%if initdata("moshi",reglist)=0 then  %> style="display:none" <%end if%>>
            <table width="100%" border=0 align="center" cellpadding=1 cellspacing=0  >
              <tr   bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#D7E3F3'">
                <td align="right" width="140"  height="30"><b>经营模式：</b></td>
                <td  ><input type=checkbox value="生产型"  name=qylb checked="checked" />
                  生产型
                  <input type=checkbox value="贸易型" name=qylb />
                  贸易型
                  <input type=checkbox value="服务型"   name=qylb />
                  服务型
                  <input  type=checkbox value="政府或其他机构"   name=qylb />
                  政府或其他机构</td>
                <td><div   id="moshib" <%if initdata("moshib",reglist)=0 then  %> style="display:none" <%end if%>><font color="#FF0000">&nbsp;*&nbsp;</font> </div></td>
              </tr>
            </table>
          </div>
        <!---------------------------经营模式------------------------------->
          <!---------------------------公司简介------------------------------->
          <div  id="comdes1" <%if initdata("comdes",reglist)=0 then  %> style="display:none" <%end if%>>
            <table width="<%=HOPE_PageWidth%>" border=0 align="center" cellpadding=0 cellspacing=0  >
              <tr   bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#D7E3F3'">
                <td align=right   width="140"><b>公司简介：<br />
                  （50-2000字） </b></td>
                <td width="2"><div   id="comdesb" <%if initdata("comdesb",reglist)=0 then  %> style="display:none" <%end if%>><font color="#FF0000">&nbsp;*&nbsp;</font> </div></td>
                <td valign="top"   >
                <div id="comdesMsg"></div>
                <textarea name="qyjj" rows=10 cols=50   onblur="check_comdes();"></textarea></td>
                <td   align="left" valign="top"  ><div id="contentdiv"  style="color:#8F8F8F; "  > 经济全球化的时代，谁的企业声誉高，谁就是商界的强者!
                  请认真填写公司简介，让客户有信任感，而不是虚假性信息，使公司形象受到影响！
                  从现在开始树立企业的良好声誉！
                  此处禁止填写联系人、电话、传真、地址、网址、email等信息 。
                  不要使用广告词或夸大性的语句，不要加图片及Html代码。 </div></td>
              </tr>
              <!---------------------------公司简介------------------------------->
            </table>
          </div>
        <table cellspacing=0 cellpadding=0 width=<%=HOPE_PageWidth%> align=center border=0>
            <tr>
              <td align=center  height="50"><input type="button" name="prego" value=" 上一步 " onclick="javascript:history.go(-1);"  style="background-color:#E45956;color:#FFFFFF; font-weight:bold; border: thick;  "/>
                &nbsp;&nbsp;
                <input type="button"   value="确认提交注册信息 " name="Next"   style="background-color: #D75842;color:#FFFFFF;   border-color:white;" onclick="checkSubmitData();" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input type="reset" name="setre" value="全部重填" style="background-color: #0099CC;color:#FFFFFF; border: thick;     " /></td>
            </tr>
        </table></td>
    </tr>
  </table>
</FORM> 
<script language="javascript">
function checkSubmitData()
{
	if(!check_yzm()){
		getObj("Verifycode").focus()
		return false;
		}
	else if(!check_username()){
		getObj("user").focus()
		return false;
		}
	else if(!check_pass()){
		getObj("pass").focus()
		return false;
		}
	else if(!check_pass2()){
		getObj("confirmpassword").focus()
		return false;
		}
	else if(!check_ques()){
		getObj("question").focus()
		return false;
		}
	else if(!check_ans()){
		getObj("answer").focus()
		return false;
		}
	else if(!check_usertrue()){
		getObj("name").focus()
		return false;
		}
	else if(!check_sex()){
		getObj("ch").focus()
		return false;
		}
	else if(!check_email()){
		getObj("email").focus()
		return false;
		}
	else if(!check_tm()){
		getObj("tm").focus()
		return false;
		}
	else if(!check_msn()){
		getObj("msn").focus()
		return false;
		}
	else if(!check_tel()){
		getObj("phonecountry").focus()
		return false;
		}
	else if(!check_comaddr()){
		getObj("country1").focus()
		return false;
		}
	else if(!check_street()){
		getObj("address").focus()
		return false;
		}
	else if(!check_fax()){
		getObj("Faxcountry").focus()
		return false;
		}
	else if(!check_mobile()){
		getObj("mobile").focus()
		return false;
		}
	else if(!check_post()){
		getObj("post").focus()
		return false;
		}
	else if(!check_comname()){
		getObj("qymc").focus()
		return false;
		}
	else if(!check_work()){
		getObj("Zw").focus()
		return false;
		}
	else if(!check_mainkind()){
		getObj("right_category_id").focus()
		return false;
		}
	else if(!check_mainpro()){
		getObj("productionService").focus()
		return false;
		}
	else if(!check_moshi()){
		getObj("qylb").focus()
		return false;
		}
	else if(!check_comdes()){
		getObj("qyjj").focus()
		return false;
		}
	else{	document.form.submit();}
}
</script>
<!--#include file="../inc/end.asp"-->
<%
conn.close
'问题验证
Sub GetAskQuestion()
	problem=split(safeask,"!")
	result=split(safeanser,"!")
	problemNum=UBound(problem)
	randomize
	cIntSet=cint(Rnd*problemNum)
	Session("vCodeUser")=result(cIntSet)
	response.Write("<font color=red>"&problem(cIntSet)&"</font><br>")
End Sub
%>
 