<div id="mc_register" class="mc_login clearfix">
  <div class="coltop"></div>
  <script type="text/javascript" src="js/validator.js"></script>
  <script type="text/javascript">
  //<![CDATA[
    Event.observe(window, 'load', function(){
      if (document.forms['ECS_LOGIN'].user_name) document.forms['ECS_LOGIN'].user_name.focus();
      if ($('captcha-img')) changeCaptcha($('captcha-img'));
    });
    function changeCaptcha (img) {
      img.src = 'admin.php?app=profile&act=captcha&' + Math.random();
    }

  //]]>
  </script>
  <div class="column1">
    <h3><img src="themes/mall/skin/default/images/login_title_register.gif" alt="注册" /></h3>
    <form name="ECS_LOGIN" action="index.php?app=member&amp;act=register" method="post">
      <table border="0" cellspacing="0" class="formtable">
        <tr>
          <th width="80">用户名:</th>
          <td><input type="text" size="30" class="sinput" name="user_name" onblur="checkUserName(this.value)" /><span id="checkusername" class="tip_msg"></span></td>
        </tr>
        <tr>
          <th>E-mail:</th>
          <td><input name="email" type="text" size="30" class="sinput" dataType="email" onblur="checkUserEmail(this.value)" /><span id="checkuseremail" class="tip_msg"></span></td>
        </tr>
        <tr>
          <th>密码:</th>
          <td><input name="password" type="password" size="30" class="sinput" id="password_id" onkeyup="checkIntensity(this.value)" />
            <table border="0" cellspacing="0" style="vertical-align:bottom;display:inline;">
              <tbody>
                <tr align="center">
                  <td id="pwd_lower" style="border-bottom: 2px solid rgb(218, 218, 218);" width="33%">弱</td>
                  <td id="pwd_middle" style="border-bottom: 2px solid rgb(218, 218, 218);" width="33%">中</td>
                  <td id="pwd_high" style="border-bottom: 2px solid rgb(218, 218, 218);" width="33%">强</td>
                </tr>
              </tbody>
            </table>
          </td>
        </tr>
        <tr>
          <th>重复密码:</th>
          <td><input name="repeat_password" type="password" size="30" class="sinput"  onblur="checkRepeatPassword(this.value)"/><span id="checkrepeatpassword" class="tip_msg"></span></td>
        </tr>
        <?php if ($this->_var['register_captcha']): ?>
        <tr>
          <th>验证码:</th>
          <td><input type="text" id="captcha" name="captcha" maxlength="4" size="8"  class="sinput" /> <img src="about:blank" style="display:none;cursor:pointer" id="captcha-img" title="看不清图片？点击这里。" onclick="changeCaptcha(this)" onload="this.style.display='inline'" /> <span class="desc" onclick="changeCaptcha($('captcha-img'))" style="cursor:pointer">看不清图片？点击这里。</span></td>
        </tr>
        <?php endif; ?>
        <tr>
          <th>&nbsp;</th>
          <td><input type="checkbox" name="eula" onclick="if(this.checked)$('registerBtn').disabled=false; else $('registerBtn').disabled=true;" /> 我已认真阅读并且完全同意<a href="./?app=article&amp;act=builtin&amp;code=eula" target="_blank">《用户服务协议》</a>中的所有条款。</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>
          <input type="hidden" name="ret_url" value="<?php echo $this->_var['ret_url']; ?>" /><input type="submit" disabled="disabled" value="注册" id="registerBtn" class="sbtn" /></td>
        </tr>
      </table>
    </form>
  </div>
  <div class="column2">
    <h4>已有帐号</h4>
    <p>如果您已经有登录账号，<br />请点击下面按钮直接登录</p><br />
    <p><a href="index.php?app=member&amp;act=login"><img src="themes/mall/skin/default/images/btn_to_signin.gif" alt="<?php echo $this->_var['anonymous_buy_alt']; ?>" /></a></p><br /><br />
    <p>忘记密码，请点击下面链接取回密码。</p>
    <p><a href="index.php?app=member&amp;act=getpwd"><img src="themes/mall/skin/default/images/btn_getpwd.gif" alt="取回密码" /></a></p>
  </div>
  <div class="colbtm"></div>
</div>