<!--{template 'default/head'}-->
<div class="memeber_path cbody"></div>
<script type="text/javascript">
var status = 0;
var regFrom = function(){
	Each(getElementsByClassName($('regForm'), 'hidden'), function(){
		this.style.display = status == 0 ? 'block': 'none';	
	});
	status = status == 1 ? 0 : 1;
}
</script>
<div class="cbody">
<!--{if $_GET[myoption]==1}-->
	 <form name="myform" method="post" action="reg.php" onsubmit="return check();" class="label" id="regForm">
      <p>
        <label class="f-label">登录账号</label><input name="username" type="text" class="f-text" id="username" size="25" onBlur="checkUsername()"><span id=msg style="margin-left:5px;">&nbsp;长度为4到15个英文字符,一个汉字等于2个英文字符</span>
      </p>
      <p>
        <label class='f-label'>登录密码</label>
        <input name="password" type="password" id="password" class="f-text" size="25" onKeyUp=pwStrength(this.value) onBlur=pwStrength(this.value)> <span id="strength_L" style="padding:4px;background-color:#cccccc">弱</span> <span id="strength_M" style="padding:4px;background-color:#cccccc">中</span> <span id="strength_H" style="padding:4px;background-color:#cccccc">强</span> 不得少于6个字符和大于32个英文字符
      </p>
	  <p>
        <label class='f-label'>确认密码</label>
        <input name="pwdconfirm" type="password" id="pwdconfirm" size="25" class="f-text">
      </p>
      <p>
        <label class='f-label'>邮箱</label>
        <input name="email" type="text" class="f-text" id="email" size="25" maxlength="50">
      </p>
	  <p class='note'>
		<input type="hidden" name="reg" value="1">
		<input type="submit" id="regSubmit" value=" 注册 "  style="padding: 0pt 5px;">
	    </p>
		</form>
    </table>
  </p>
</table>

<!--{else}-->
          <p>
            <textarea style="FONT-WEIGHT: normal; FONT-SIZE: 9pt; WIDTH: 99%; LINE-HEIGHT: normal; FONT-STYLE: normal; HEIGHT: 310px; FONT-VARIANT: normal" readOnly>
		<!--{template 'default/member/description'}-->
            </textarea> 
            
          </p>
          <p>&nbsp;&nbsp;<A href="http://www.cnnic.net.cn/html/Dir/1997/05/20/0646.htm" target=_blank>中华人民共和国计算机信息网络国际联网管理暂行规定</A> </p>
          <p> &nbsp;&nbsp;<A href="http://www.cnnic.net.cn/html/Dir/1994/02/18/0644.htm" target=_blank>中华人民共和国计算机信息系统安全保护条例</A> </p>
		 <p>&nbsp;&nbsp;<A href="http://www.cnnic.net.cn/html/Dir/1997/12/11/0650.htm" target=_blank>计算机信息网络国际联网安全保护管理办法 </A></p>
       <FORM name=licenseform action=reg.php method=get>
          <p>
			<INPUT type=hidden value=1 name=myoption>
			<INPUT type=hidden value="<!--{eval echo urlencode($_GET[forward]);}-->" name=forward>
			<INPUT style="CURSOR: pointer" type=submit id="subject" value=" 我同意 "> &nbsp; 
			<INPUT style="CURSOR: pointer" onclick="window.location.href='{$_SET[weburl]}{$_SET[webpath]}'" type=button value=" 不同意 "> 
	    
          </p>
	</FORM>

        <SCRIPT type=text/javascript>
        			var secs = 5;
        			var wait = secs * 1000;
        			$('subject').value = "我同意 [" + secs + "]";
        			$('subject').disabled = true;
        			for(i = 1; i <= secs; i++)
        			{
        				window.setTimeout("Update(" + i + ")", i * 1000);
        			}
        			window.setTimeout("Timer()", wait);
        			
        			function Update(num)
        			{
        				if(num != secs)
        				{
        					printnr = (wait / 1000) - num;
        					$('subject').value = "我同意 [" + printnr + "]";
        				}
        			}
        			
        			function Timer()
        			{
        				$('subject').disabled = false;
        				$('subject').value = " 我同意 ";
        			}
        			</SCRIPT>
      
      <td width=1>
    </p>
  </table>
<!--{/if}-->
</div>
<script language=javascript src={$_SET[webpath]}images/js/member_reg.js></script>
<!--{template 'default/foot'}-->
