<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>用户注册 - {--$siteName--}</title>
<link href="../common/user.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../common/common.js"></script>
  <script language="javascript" src="../common/ajax.js"></script>
  <script type="text/javascript">
  <!--
    function validateUserName(str)
    {
        if (-1 != str.indexOf('√'))
        {
            $('spanUserNameInfo').innerHTML = "<span class='areaOk'><img src='../images/right.gif' align='absbottom'>" + str + "</span>";
        }
        else
        {
            $('spanUserNameInfo').innerHTML = "<span class='areaErr'><img src='../images/x.gif'> " + str + "</span>";
        }
    }
    
    function validateUserEmail(str)
    {
        if (-1 != str.indexOf('√'))
        {
            $('spanUserEmailInfo').innerHTML = "<span class='areaOk'><img src='../images/right.gif' align='absbottom'>" + str + "</span>";
        }
        else
        {
            $('spanUserEmailInfo').innerHTML = "<span class='areaErr'><img src='../images/x.gif' align='absmiddle'> " + str + "</span>";
        }
    }
  -->
  </script>
</head>

<body>
{--include file="_head.tpl"--}
<table width="760" border="0" align="center" cellpadding="2" cellspacing="0">
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td class="fontCaption borderBottom">用户注册</td>
  </tr>
  <tr>
    <td width="100" valign="top">&nbsp;</td>
    <td height="300" valign="top">
<form action="register_do.php" method="post" name="formReg" id="formReg" onSubmit="return notEmpty(userName, '请填写用户名。')&&notEmpty(userPwd, '请填写登录密码。')&&notEmpty(userPwd2, '请再填写一次登录密码。')&&isSamePwd(userPwd, userPwd2)&&notEmpty(authCode, '请填写验证码。')">
              <br>
              <table border="0" cellspacing="0" cellpadding="2">
                <tr>
                  <td><span class="fontRed">*</span> 用户名：                  </td>
                </tr>
                <tr>
                  <td>                 
                    <table border="0" cellspacing="0" cellpadding="1">
                      <tr>
                        <td>
                          <input name="userName" type="text" id="userName" maxlength="20"  onBlur="ajax.get('register_check.php?type=userName&value=' + ajax.urlEncode($('userName').value), 'spanUserNameInfo', 'validateUserName', '正在检查，请稍候…')" >
                        </td>
                        <td>&nbsp;<span id="spanUserNameInfo"></span> </td>
                      </tr>
                    </table>
                  </td>
            </tr>
                <tr>
                  <td>
                    <table border="0" cellspacing="0" cellpadding="1">
                      <tr>
                        <td><span class="fontRed">*</span> 密码：<br> 
                          <input type="password" name="userPwd" id="userPwd">
                        </td>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td><span class="fontRed">*</span> 重复密码：<br> 
                          <input type="password" name="userPwd2" id="userPwd2">
                        </td>
                        <td>&nbsp;</td>
                      </tr>
                    </table>
                  </td>
            </tr>
                <tr>
                  <td>
                    <table border="0" cellspacing="0" cellpadding="1">
                      <tr>
                        <td><span class="fontRed">*</span> 验证码： </td>
                        <td rowspan="2"><img src="../inc/authcode.php" alt="看不清？点击更换" class="borderAll" onClick="this.src=this.src"></td>
                      </tr>
                      <tr>
                        <td>
                          <input type="text" name="authCode" id="authCode" autocomplete="off">
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td>
                    <input type="submit" name="button" id="button" value=" 提交 ">
                  </td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                </tr>
              </table>
      </form>
    </td>
  </tr>
</table>
{--include file="_foot.tpl"--}
</body>
</html>
