<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>用户注册-{$System.title}</title>
    <meta name="keywords" content="{$System.keywords}" />
    <meta name="description" content="{$System.description}" />
    <link href="../css/base.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../Inc/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="/Inc/userExist.js" />
    <script type="text/javascript" src="../Inc/UserLog.js"></script>
    <script type="text/javascript" src="../Inc/FormVerification.js"></script>
    <script type="text/javascript">
    function checkEmail(mail){
	    var str=mail;
	    var Expression=/\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;
	    var objExp=new RegExp(Expression);
	    if(objExp.test(str)==true){
		    return true;
	    }
	    else{
		    return false;
		    }
	}
            function CheckForm(){
                if($("#AgreeToTerms:checked").size()<=0)
                {
                    alert("提交信息之前，您必须同意服务条款！");
                    return false;
                }
                if($("#txt_LoginName").val().length<=0)
                {
                    alert("帐号不能为空！");
                    return false;
                }
                if($(".email").val().length<=0)
                {
                    alert("帐号不能为空！");
                    return false;
                }
                if($(".pwd").val().length<=0)
                {
                    alert("密码不能为空！");
                    return false;
                }
                if($(".confirm_pwd").val().length<=0)
                {
                    alert("确认密码不能为空！");
                    return false;
                }
                if($(".confirm_pwd").val()!=$(".pwd").val())
                {
                    alert("密码和输入密码必须相同！");
                    return false;
                }
                if(checkEmail($(".email").val())==false)
                {
                    alert("电子邮件格式错误！");
                    return false;
                }
            }
    </script>
    <style type="text/css">
    tr{
        height:30px;
    }
    </style>
</head>
<body id="sort">
    <div id="wrapper">
        <div id="topWrapper">
            <div id="logo">
            </div>
            <div class="float_r" id="userlogin">
            </div>
            <div id="mainNav" class="clear">
                <ul>
                    <li><a href="/">网站首页</a></li>
                    <li><a href="/Sort.{$VSextName}">软件分类</a></li>
                    <li><a href="/NewSoft.{$VSextName}">最新更新</a></li>
                    <li><a href="/TopSoft.{$VSextName}">下载排行</a></li>
                    <li class="active">会员中心</li>
                </ul>
            </div>
            <div class="clear">
            </div>
            <div id="searchBox">
                <form method="get" action="/SoftList.{$VSextName}">
                    快 速 搜 索：
                    <input type="text" name="keyWords" class="search" />
                    <input type="submit" value="搜索" class="searchBtn" />
                    <span class="tag">热门关键字： {$HotTags}  </span>
                </form>
                {$topclass}
            </div>
            <div id="wordFind">
                 <span>字母检索</span> <a href="/A/index.{$VSextName}">A</a> <a href="/B/index.{$VSextName}">
                    B</a> <a href="/C/index.{$VSextName}">C</a> <a href="/D/index.{$VSextName}">D</a>
                <a href="/E/index.{$VSextName}">E</a> <a href="/F/index.{$VSextName}">F</a>
                <a href="/G/index.{$VSextName}">G</a> <a href="/H/index.{$VSextName}">H</a>
                <a href="/I/index.{$VSextName}">I</a> <a href="/J/index.{$VSextName}">J</a>
                <a href="/K/index.{$VSextName}">K</a> <a href="/L/index.{$VSextName}">L</a>
                <a href="/M/index.{$VSextName}">M</a> <a href="/N/index.{$VSextName}">N</a>
                <a href="/O/index.{$VSextName}">O</a> <a href="/P/index.{$VSextName}">P</a>
                <a href="/Q/index.{$VSextName}">Q</a> <a href="/R/index.{$VSextName}">R</a>
                <a href="/S/index.{$VSextName}">S</a> <a href="/T/index.{$VSextName}">T</a>
                <a href="/U/index.{$VSextName}">U</a> <a href="/V/index.{$VSextName}">V</a>
                <a href="/W/index.{$VSextName}">W</a> <a href="/X/index.{$VSextName}">X</a>
                <a href="/Y/index.{$VSextName}">Y</a> <a href="/Z/index.{$VSextName}">Z</a>
            </div>
            <!-这里放最新更新软件页内容-->
            <div id="contentWrapper">
                <div id="Uhere">
                    您的位置:<a href="/"> 网站首页</a> &raquo; <a href="#">用户注册</a></div>
                    <div id="formBox" style="margin:0px auto 0px auto;text-align:center;">
                    <form id="userForm" action="?action=Add" method="post" name="signupFrom">
                        <table border="1" cellpadding="0" cellspacing="0" align="center" style="width:98%">
                            <tr style="background-color:#DBF3F5;">
                                <td align="center" style="width:200px;">
                                    <label for="Name">
                                        用 户 名:</label>
                                </td>
                                <td align="left" style="width:600px;">
                                    <input type="text" id="txt_LoginName" name="Name" class="name" value="" size="20"
                                        maxlength="30" />
                                    *(最多<%= new WanerSoft.Business.PageExtend().ValuedUserConfig.UserNameMaxLength %>个字符)<span id="userExist"></span>
                                </td>
                            </tr>
                            <tr>
                                <td align="center">
                                    <label for="Email">
                                        电子邮箱:</label>
                                </td>
                                <td align="left">
                                    <input type="text" name="Email" class="email" value="" size="20" maxlength="150" /> *
                                </td>
                            </tr>
                            <tr style="background-color:#DBF3F5;">
                                <td align="center">
                                    <label for="password">
                                        密&nbsp; &nbsp; &nbsp;  码:</label>
                                </td>
                                <td align="left">
                                    <input type="password" name="password" class="pwd" size="18" maxlength="15" />
                                    *(最多15个字符)
                                </td>
                            </tr>
                            <tr>
                                <td align="center">
                                    <label for="confirm_password">
                                        重复密码:</label>
                                </td>
                                <td align="left">
                                    <input type="password" name="confirm_password" class="confirm_pwd" size="18" maxlength="15" />
                                    *
                                </td>
                            </tr>
                            <tr style="background-color:#DBF3F5;">
                                <td align="center">
                                    <label for="confirm_password">
                                        中 文 名:</label>
                                </td>
                                <td align="left">
                                    <input type="text" name="chinaname"  class="name" maxlength="15" />
                                    
                                </td>
                            </tr>
                            <tr>
                                <td align="center">
                                    <label for="confirm_password">
                                        密码提示问题:</label>
                                </td>
                                <td align="left">
                                    <input type="text" name="homepage"   class="name" size="18" maxlength="15" />
                                    
                                </td>
                            </tr>
                            <tr style="background-color:#DBF3F5;">
                                <td align="center">
                                    <label for="confirm_password">
                                        答      案:</label>
                                </td>
                                <td align="left">
                                    <input type="text" name="address"   class="name" size="18" maxlength="15" />
                                    
                                </td>
                            </tr>
                            
                            <% if (new WanerSoft.Business.PageExtend().ValuedSystemParamters.RegisterOpenValidationCode == "1")
                               { %>
                            <tr>
                                <td align="center">
                                    <label for="confirm_password">
                                        验 证 码:</label>
                                </td>
                                <td align="left"><input type="text" name="yanzheng" class="name" size="18"/>
                                    <img alt="" src="/Ajax/SafeCode.aspx" />
                                    
                                </td>
                            </tr>
                            <%} %>
                            <tr>
                                <td align="left" colspan="2">
                                    
                                    <input type="checkbox" name="AgreeToTerms" id="AgreeToTerms" value="1" />&nbsp;<label for="AgreeToTerms">
                                        同意服务条款</label>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                   <textarea name="textarea" class="comment" cols="" rows="20" style="width:100%; height:200px;"><%=new WanerSoft.Business.PageExtend().ValuedUserConfig.RegisterProtocol %></textarea></td>
                            </tr>
                        </table>
                        <div>
                            <input name="create791" type="submit" class="btn" onclick="return CheckForm();" value="提交" />
                            <input name="Submit" type="reset" class="btn" value="重置" />
                        </div>
                    </form>
                </div>
            </div>
            <div class="clear">
            </div>
            <div id="bottomWrapper">
                {$System.CopyRight}
            </div>
        </div>
        
</body>
</html>
