<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Language" content="gb2312">
<meta name="keywords" content="{$Meta_Keywords}">
<meta name="description" content="{$Meta_Description}">
<link type="text/css" rel="stylesheet" href="{$InstallDir}Skins/{$SkinDir}/Style/Style.css" />
<link type="text/css" rel="stylesheet" href="{$InstallDir}Skins/{$SkinDir}/Style/User.css" />
<Script language="JavaScript" Src="{$InstallDir}Inc/Site.Js"></Script>
<Script language="JavaScript" Src="{$InstallDir}Inc/Menu.Js"></Script>
<meta name="generator" content="WRMPS {$SystemVersion}" />
<meta name="copyright" content="2004-2010 Wangren Inc." />
<title>会员注册 - {$SiteTitle}</title>
<script language="JavaScript">
function RegAjax(u,s){
	if (s!=""){
		var url = "{url:reg}";
		if(u=="UserName"){
	      var Post = "Action=Check&w=u&User="+escape(s);
		  }else{
	      var Post = "Action=Check&w=e&Email="+escape(s);
		  }
		if (Post){
		  var ajax = InitAjax();
		  ajax.open("POST", url, true);
		  ajax.setRequestHeader("CONTENT-TYPE","application/x-www-form-urlencoded; charset=GB2312");
		  ajax.send(Post);
		  //打印结果
		  ajax.onreadystatechange = function(){
		    if (ajax.readyState == 4){getinfo = ajax.responseText;}else{getinfo = "未知错误";}
	        if(u=="UserName")
			{document.getElementById("UserName1").innerHTML = getinfo;}else{document.getElementById("Email1").innerHTML = getinfo;}
		  }
		}
	}
}

function show(){
    if (document.getElementById("vip").style.display=="none"){
    document.getElementById("vipTit").style.display = "";
    document.getElementById("vip").style.display = "";
    }else{
    document.getElementById("vipTit").style.display = "none";
    document.getElementById("vip").style.display = "none";
    }
    }
function rUserName(str){
  if(str =="" || str.length<{$UserLeast} || str.length>{$UserMost}) {
    document.getElementById("UserName1").innerHTML = "<font color=red><strong>登录用户名长度必须为 {$UserLeast}-{$UserMost} 字符。</strong></font>";
    document.addform.UserName.focus();
    document.addform.UserName.select();
	return false;
  }
  document.getElementById("UserName1").innerHTML = "loading...";
  RegAjax("UserName",str)
}
function rEmail(str){
  var filter=/^\s*([A-Za-z0-9_-]+(\.\w+)*@(\w+\.)+\w{2,3})\s*$/;
  if (str =="" || !filter.test(str)) {
     document.getElementById("Email1").innerHTML = "<font color=red><strong>请输入正确的邮箱地址。</strong></font>";
     document.addform.Email.focus();
     document.addform.Email.select();
     return false;
  }
  document.getElementById("Email1").innerHTML = "loading...";
  RegAjax("Email",str)
}
function replaceInput(obj,event){
	if(event.keyCode!=37 && event.keyCode!=39){
      var IsTitle=/[^\u4E00-\u9FA50-9a-zA-Z_\.]/g;
	  if(IsTitle.test(obj.value)){
	    obj.value=obj.value.replace(IsTitle,'');
	  }
	}
}
function rPassWord(str){
  if( str =="" || str.length<{$PassLeast} || str.length>{$PassMost}) {
    document.getElementById("PassWord1").innerHTML = "<font color=red><strong>密码长度必须为 {$PassLeast}-{$PassMost} 字符。</strong></font>";
    document.addform.PassWord.focus();
    document.addform.PassWord.select();
    return false;
  }
  if( str == addform.UserName.value) {
    document.getElementById("PassWord1").innerHTML = "<font color=red><strong>密码不能与登录用户名相同。</strong></font>";
    document.addform.PassWord.focus();
    document.addform.PassWord.select();
    return false;
  }
  document.getElementById("PassWord1").innerHTML = "密码可以使用";
}
function rPass(str){
  if(str =="") {
    document.getElementById("Pass1").innerHTML = "<font color=red><strong>请重复输入密码。</strong></font>";
    document.addform.Pass.focus();
    document.addform.Pass.select();
    return false;
  }
  if(addform.PassWord.value != str) {
    document.getElementById("Pass1").innerHTML = "<font color=red><strong>两次输入的密码不一致。</strong></font>";
    document.addform.Pass.focus();
    document.addform.Pass.select();
    return false;
  }
  document.getElementById("Pass1").innerHTML = "确认密码正确";
}
function rQuestion(str){
  if(str =="") {
    document.getElementById("Question1").innerHTML = "<font color=red><strong>请输入密码提示问题。</strong></font>";
    document.addform.Question.focus();
    document.addform.Question.select();
    return false;
  }
  document.getElementById("Question1").innerHTML = "密码提示问题正确";
}
function rAnswer(str){
  if(str =="") {
    document.getElementById("Answer1").innerHTML = "<font color=red><strong>请输入密码提示答案。</strong></font>";
    document.addform.Answer.focus();
    document.addform.Answer.select();
    return false;
  }
  document.getElementById("Answer1").innerHTML = "密码提示答案正确";
}

function rCodeAnswer(str){
  if("{$IsIDQACode}" == "True" && str =="") {
    document.getElementById("CodeAnswer1").innerHTML = "<font color=red><strong>请输入验证问题答案。</strong></font>";
    document.addform.CodeAnswer.focus();
    document.addform.CodeAnswer.select();
    return false;
  }
  document.getElementById("CodeAnswer1").innerHTML = "";
}
function rCode(str){
  if("{$IsIDCode}" == "True" && str == "") {
    document.getElementById("Code1").innerHTML = "<font color=red><strong>请输入验证码。</strong></font>";
    document.addform.Code.focus();
    document.addform.Code.select();
    return false;
  }
  document.getElementById("Code1").innerHTML = "";
}

function ClickSubmit(){
  var Msg = "";
  if (document.addform.UserName.value =="" || document.addform.UserName.value.length<{$UserLeast} || document.addform.UserName.value.length>{$UserMost}){
    document.getElementById("UserName1").innerHTML = "<font color=red><strong>登录用户名长度必须为 {$UserLeast}-{$UserMost} 字符。</strong></font>";
    Msg = "Err";
  }
  var filter=/^\s*([A-Za-z0-9_-]+(\.\w+)*@(\w+\.)+\w{2,3})\s*$/;
  if (document.addform.Email.value =="" || !filter.test(document.addform.Email.value)){
    document.getElementById("Email1").innerHTML = "<font color=red><strong>请输入正确的邮箱地址。</strong></font>";
    Msg = "Err";
  }
  if (document.addform.PassWord.value =="" || document.addform.PassWord.value.length<{$PassLeast} || document.addform.PassWord.value.length>{$PassMost} || document.addform.PassWord.value==document.addform.UserName.value){
    document.getElementById("PassWord1").innerHTML = "<font color=red><strong>密码长度必须为 {$PassLeast}-{$PassMost} 字符且不能和用户名相同。</strong></font>";
    Msg = "Err";
  }
  if (document.addform.Pass.value == "" || document.addform.PassWord.value != document.addform.Pass.value){
    document.getElementById("Pass1").innerHTML = "<font color=red><strong>请重复输入密码且和登录密码一至。</strong></font>";
    Msg = "Err";
  }
  if (document.addform.Question.value == ""){
    document.getElementById("Question1").innerHTML = "<font color=red><strong>请输入密码提示问题。</strong></font>";
    Msg = "Err";
  }
  if (document.addform.Answer.value == ""){
    document.getElementById("Answer1").innerHTML = "<font color=red><strong>请输入密码提示答案。</strong></font>";
    Msg = "Err";
  }
  if ("{$IsIDQACode}" == "True" && document.addform.CodeAnswer.value == ""){
    document.getElementById("CodeAnswer1").innerHTML = "<font color=red><strong>请输入验证问题答案。</strong></font>";
    Msg = "Err";
  }
  if ("{$IsIDCode}" == "True" && document.addform.Code.value == ""){
    document.getElementById("Code1").innerHTML = "<font color=red><strong>请输入验证码。</strong></font>";
    Msg = "Err";
  }
  if ( Msg != ""){
	return false;
  }else{
    document.addform.submit();
  }
}
function get_Code(){
  document.getElementById("imgurl").src='{$InstallDir}inc/{$CodePlan}.asp?'+Math.random()
}
</script>
</head>
<body>
{$My_通用_Hand}
  <div class=SitePath>{$SitePath}</div>

<table width="780px" border="0" cellspacing="0" cellpadding="0" align="center" class=Table>
  <tr><td valign=top>
<table width="90%" border="0" cellspacing="0" cellpadding="5" align="center">
<form name="addform" method="post">
<input name="Action" type="hidden" value="Reg">
<input name="User" type="hidden" value="{$User}">
  <tr><td colspan=2 height="50px" Class=Remark style="color:#c82b00"><img src="{$InstallDir}Skins/{$SkinDir}/icon_04.gif" align=absmiddle> <strong>填写您的会员信息，这是您在{$SiteName}的身份证。</strong></td></tr>
  <tr>
    <td class=RegTD>
<!--=======================-->
<table width="100%" border="0" cellspacing="5" cellpadding="0" align="center">
  <tr>
    <td width="17%" height="40px" align=right><strong>登录用户名 </strong></td>
    <td width="29%"><input name="UserName" class="input2" style="width:200px" type="text" maxlength={$UserMost} onBlur="javascript:rUserName(this.value)" onKeyUp="javascript:replaceInput(this,event)"></td>
    <td width="54%" class=Remark><span id=UserName1>{$UserLeast}-{$UserMost} 字符(中文,数字,字母和下划线)。</span></td>
  </tr>
  <tr>
    <td height="40px" align=right><strong>电子邮箱 </strong></td>
    <td><input name="Email" type="text" class="input2" style="width:200px" maxlength=50 onChange="javascript:rEmail(this.value)"></td>
    <td class=Remark><span id=Email1>请输入有效的邮件地址。</span></td>
  </tr>
  <tr>
    <td height="40px" align=right><strong>密码 </strong></td>
    <td><input name="PassWord" type="password" class="input2" style="width:200px" maxlength={$PassMost} onKeyUp="pwStrength(this.value)" onChange="javascript:rPassWord(this.value)">
      <table width="204px" border="0" cellspacing="0" cellpadding="0">
        <tr align="center" bgcolor="#eeeeee">
          <td width="68px" height=5px id="strength_L"></td>
          <td width="68px" id="strength_M"></td>
          <td width="68px" id="strength_H"></td>
        </tr>
      </table>
	</td>
       <td class=Remark><span id=PassWord1>{$PassLeast}-{$PassMost} 字符，注意区分大小写，且不能与用户名相同。</span></td>
  </tr>
  <tr>
    <td height="40px" align=right><strong>再次输入密码 </strong></td>
    <td><input name="Pass" type="password" class="input2" style="width:200px" maxlength={$PassMost} onChange="javascript:rPass(this.value)"></td>
    <td class=Remark><span id=Pass1>再次确认您的密码。</span></td>
  </tr>
  <tr>
    <td height="40px" align=right valign=top><strong>密码提示问题 </strong></td>
    <td><input name="Question" type="text" Style="width:200px" class="input2" maxlength="50" onChange="javascript:rQuestion(this.value)"><br><SELECT size=1 name="QuestionSelect" onChange="document.addform.Question.value=this.options[this.selectedIndex].value;rQuestion(this.options[this.selectedIndex].value)" style="margin-top:5px">
   <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>
   <OPTION value="你母亲的名字是？">你母亲的名字是？</OPTION>
</SELECT></td>
    <td class=Remark><span id=Question1>万一您忘记了密码，可以通过“提示问题”和“答案”找回。</span></td>
  </tr>
  <tr>
    <td height="40px" align=right><strong>密码提示答案 </strong></td>
    <td><input name="Answer" type="text" class="input2" style="width:200px" maxlength="50" onChange="javascript:rAnswer(this.value)"></td>
    <td class=Remark><span id=Answer1></span></td>
  </tr>
  <tr {$IDQACode}>
    <td height="40px" align=right><strong>验证问题 </strong></td>
    <td><strong>{$IDQuestion}</strong><br><input name="CodeAnswer" type="text" Style="width:100px" class="input2" maxlength="50" onChange="javascript:rCodeAnswer(this.value)"></td>
    <td class=Remark><span id=CodeAnswer1></span></td>
  </tr>
  <tr {$IDCode}>
    <td height="40px" align=right><strong>验证码 </strong></td>
    <td><input name=Code size=8 maxlength=6 onfocus="get_Code()" class="input2" onChange="javascript:rCode(this.value)"> <img src={$InstallDir}Skins/{$SkinDir}/code.gif id=imgurl align=absmiddle style='cursor:pointer' alt='验证码看不清楚?请点击刷新验证码' onclick="this.src='inc/{$CodePlan}.asp?'+Math.random()"></td>
    <td class=Remark><span id=Code1></span></td>
  </tr>
</table>
<!--=======================-->
    </td>
  </tr>
  <tr id=vipTit style="display:none"><td colspan=2 height="50px" class=Remark><img src="{$InstallDir}Skins/{$SkinDir}/icon_04.gif" align=absmiddle> <strong>注册前请仔细阅读{$SiteName}注册协议。</strong></td></tr>
  <tr id=vip style="display:none">
    <td class=RegTD>
<!--=======================-->
<table width="100%" border="0" cellspacing="5" cellpadding="0" align="center">
  <tr><td align=center><textarea class="textarea1" name="TK" style="width:99%" rows="20" readonly>⒈ {$SiteName}服务条款
{$SiteName}立足于商务，为客户提供全方位的服务。
{$SiteName}的各项电子服务的所有权和运作权归{$SiteName}所有。{$SiteName}提供的服务将完全按照其发布的章程、服务条款和操作规则严格执行。会员若完全同意所有服务条款，并完成注册程序，即可成为{$SiteName}的正式会员。
⒉ 基本条件
{$SiteName}以自己的操作系统，通过互联网络为会员提供网络服务。为此，会员须具备以下基本条件：
⑴　自行配备上网所需设备，包括电脑、调制解调器或其它必备上网装置。
⑵　自行负担商家上网所需支付的与此服务有关的电话费用、网络费用。
⒊ 服务条件
基于{$SiteName}提供的网络服务的商业性和时效性：
⑴　会员对其发布的信息负责，应提供详尽、真实、准确的商家资料，不得发布不真实的、有歧义的信息，绝对禁止发布误导性的、恶意的消息。
⑵　随时更新注册资料，以符合及时、详尽、准确的要求。
⑶　{$SiteName}向会员提供的会员帐号及密码只供会员使用。如果会员将帐号或密码丢失或被盗，应及时重新登记并重新设置密码。会员造成的帐号失密，应自行承担责任。
⑷　会员若发现{$SiteName}发布的信息不准确或发生错误，以及其它错误行为，应及时通知本网。若问题未能及时解决，可进入本网的投诉程序。
⑸　{$SiteName}向会员提供的商品信息之编辑、编制、传播的版权和知识产权，全部由{$SiteName}拥有；未经{$SiteName}事先以书面表示同意，任何人不得以各种形式复制、散布、出售、出版、广播、转播该商品信息。
⑹　{$SiteName}如发现会员提供的资料包含有不正确的信息，将发出警告，并保留停止或终止其会员资格的权利。
⑺　会员如违反本协议而造成{$SiteName}的经济损失，本网有权追究其经济责任与法律责任。
⒋ 会员权利与义务
会员的所有行为必须符合国家法律的规定。请仔细阅读“交易须知”中的有关条款，如违反国家法律规定和本协议，出现任何纠纷及不良结果，将由行为人独立承担所有责任。
会员可随时对{$SiteName}的服务提出批评、建议。
</textarea></td></tr>
</table>
<!--=======================-->
    </td>
  </tr>
  <tr><td colspan=2 height=50 align=center><img src="{$InstallDir}Skins/{$SkinDir}/icon_01.gif" align=absmiddle onClick="show()"> <a href=#TK onClick="show()" style="cursor:pointer">阅读{$SiteName}注册条款！</a></td></tr>
  <tr><td colspan=2 height=80 align=center><img src="{$InstallDir}Skins/{$SkinDir}/free_reg.gif" onClick="ClickSubmit();" style="cursor:pointer"></td></tr>
</form>
</table>
  </td></tr>
</table>

{$My_Bottom}
</body>
</html>