<%@ page language="C#" autoeventwireup="true" inherits="user_reg, ZKCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Register TagName="meta" TagPrefix="UC" Src="~/s/include/meta.ascx" %>
<%@ Register TagName="head" TagPrefix="UC" Src="~/s/include/head.ascx" %>
<%@ Register TagName="tip_bar" TagPrefix="UC" Src="~/s/include/tip_bar.ascx" %>
<%@ Register TagName="foot" TagPrefix="UC" Src="~/s/include/foot.ascx" %>
<!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 runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>会员注册_<%=ZK.config("sitetitle") %></title>
    <meta name="keywords" content="<%=ZK.config("sitekeywords") %>" />
    <meta name="description" content="<%=ZK.config("sitedescription") %>" />
    <UC:meta ID="meta1" runat="server" />
</head>
<body>
    <div class="wrap">
        <a name="pagetop" id="pagetop"></a>
        <UC:head ID="head1" runat="server" />
        <UC:tip_bar ID="tip_bar1" runat="server" />
        <form id="form1" runat="server" autocomplete="off">
        <div class="box">
            <div class="c1 mt5">
                <div class="b">
                    <div class="fl"></div>
                    <div class="con">会员注册</div>
                    <div class="fr"><a href="/user/login.htm">返回</a></div>
                    <div class="clear"></div>
                </div>
                <div class="v" style="background:url(/skin/public/user_reg_bg.jpg) no-repeat center bottom;">
                    <asp:Literal ID="Literal_NoLocalIpTip" runat="server"></asp:Literal>
                    <div class="NOCSS" style="padding: 20px 0 20px 200px">
                        <div class="do1">
                            <style type="text/css">
                                .NoLocalIpTip
                                {
                                    text-align: center;
                                    margin: 0 50px 0 50px;
                                    color: #f60;
                                    font-size: 14px;
                                    border: solid 1px #ffd18f;
                                    height: 32px;
                                    line-height: 32px;
                                    background-color: #fff9e6;
                                }
                                .do1 .table1 td
                                {
                                    padding-top: 10px;
                                    padding-bottom: 10px;
                                }
                                .do1 .table1 td td a, .do1 .table1 td td a:hover
                                {
                                    color: #f60;
                                }
                            </style>
                            <script type="text/javascript" src="/skin/public/reg.js"></script>
                            <table border="0" cellpadding="0" cellspacing="0" class="table1">
                                <tr>
                                    <td class="tt"><b>用户名：</b></td>
                                    <td>
                                        <asp:TextBox ID="u" runat="server" MaxLength="20" CssClass="inp4" Width="150" onfocus="document.getElementById('ButtonReg').style.display='';document.getElementById('ButtonReg_').style.display='none';" onblur="replaceCharLegal(this,this.value);check_u()" autocomplete="off"></asp:TextBox><span id="msg_u" style="margin-left: 10px"><span class="msgon">请输入用户名！</span></span>
                                    </td>
                                </tr>
                                                              
                                <tr>
                                    <td class="tt"><b>用户密码：</b></td>
                                    <td>
                                        <asp:TextBox ID="p" runat="server" MaxLength="20" TextMode="Password" CssClass="inp4" Width="150" onblur="replaceCharLegal(this,this.value);check_p()" autocomplete="off"></asp:TextBox><span id="msg_p" style="margin-left: 10px"><span class="msgon">请输入登录密码！</span></span>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tt"><b>再次输入密码：</b></td>
                                    <td>
                                        <asp:TextBox ID="pcopy" runat="server" MaxLength="20" TextMode="Password" CssClass="inp4" Width="150" onblur="check_pcopy()" autocomplete="off"></asp:TextBox><span id="msg_pcopy" style="margin-left: 10px"><span class="msgon">请再次输入登录密码！</span></span>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tt"><b>电子邮箱：</b></td>
                                    <td>
                                        <asp:TextBox ID="email" runat="server" MaxLength="200" CssClass="inp4" Width="250" onblur="check_email()" autocomplete="off"></asp:TextBox><span id="msg_email" style="margin-left: 10px"><span class="msgon">请输入您的电子邮箱！</span></span>
                                    </td>
                                </tr> 
                                <tr>
                                    <td class="tt">QQ号：</td>
                                    <td>
                                        <asp:TextBox ID="qq" runat="server" MaxLength="15" CssClass="inp4" Width="150" onblur="check_qq()" autocomplete="off"></asp:TextBox><span id="msg_qq" style="margin-left: 10px"><span class="msgon">请输入您的QQ号码！</span></span>
                                    </td>
                                </tr>
                                <%--<tr>
                                    <td class="tt"><b>验证码：</b></td>
                                    <td>
                                        <table border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td><asp:TextBox ID="vc" runat="server" MaxLength="4" CssClass="inp4" Width="77" onkeyup="if(this.value.length>0)check_vc();"></asp:TextBox></td>
                                                <td style="padding-left: 5px; width: 300px">
                                                    <img id="ValidateCodeImage" src="/s/tool/fun/ValidateCode1.aspx?type=en&len=4&height=24&str=" title="点击刷新验证码" onclick="this.src='/s/tool/fun/ValidateCode1.aspx?type=en&len=4&height=24&str=&rd'+Math.random()" style="cursor: pointer" align="absmiddle" width="68" height="24" /><span id="msg_vc" style="margin-left: 10px"><span class="msgon">请输入验证码！</span></span>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>--%>
                                <tr>
                                    <td class="tt"><b>图片验证码：</b>
                                    <script type="text/javascript" src="/skin/public/jquery-1.8.3.min.js"></script>
                                    <script type="text/javascript">
                                        function showgjvcpic(obj)
                                        {
                                            obj.innerHTML="正在获取验证码&raquo;";
                                            document.getElementById("gjvcpic").src="/s/skin/loading.gif";
                                            document.getElementById("gjvcpic").className="abs";
                                            function SubFun(result)
                                            {
                                                if(result.indexOf(".jpg")!=-1||result.indexOf(".gif")!=-1||result.indexOf(".png")!=-1)
                                                {
                                                    obj.innerHTML="点击刷新验证码&raquo;";
                                                    document.getElementById("gjvcpic").src=result+"?rd="+Math.random();                                                                                                        
                                                }
                                            }
                                            
                                            $.ajax({url:"reg.aspx?act=ajax&check=2&rd="+Math.random(),async:true,cache:false,context:document.body,success:function(XMLHttpRequest){
                                                SubFun(XMLHttpRequest);
                                            }});

                                            //ajax("get","reg.aspx?act=ajax&check=2&rd="+Math.random(),"",function OnHandler(){if(xmlHttp.readyState == 4){SubFun(xmlHttp.responseText);}});                                           
                                        }
                                    </script>
                                    </td>
                                    <td>
                                        <table border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td><asp:TextBox ID="gjvc" runat="server" MaxLength="20" CssClass="inp4" Width="150" onkeyup="if(this.value.length>0)check_gjvc();" autocomplete="off"></asp:TextBox></td>
                                                <td style="padding-left: 5px; width: 300px"><span id="msg_gjvc"></span><a href="javascript:void(0)" id="gjvctxt" onclick="showgjvcpic(this);">点击显示验证码&raquo;</a><img id="gjvcpic" src="/s/skin/loading.gif" title="如果验证图片很久未加载显示，则请点击图片进行刷新！" class="none" style="margin-top:-10px;margin-left:12px;" onclick="showgjvcpic(document.getElementById('gjvctxt'));" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tt">&nbsp;</td>
                                    <td>
                                        <table border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td><input type="checkbox" id="agreement" checked="checked" /></td>
                                                <td>
                                                    <div style="padding-top:2px;*padding-top:4px;padding-left:5px;*padding-left:2px;color:#666;font-weight:bold;"><label for="agreement">我已经阅读并同意会员注册协议</label><a href="javascript:void(0)" onclick="showregagreement()">[查看会员协议]</a></div>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tt">&nbsp;</td>
                                    <td>
                                        <table border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td><asp:Button ID="ButtonReg" runat="server" CssClass="but4" Text="立即注册" OnClientClick="return check()" onmouseover="hover(this,0.8)" onmouseout="hover(this,1)" OnClick="ButtonReg_Click" /><input id="ButtonReg_" type="button" class="but4" value="Loading.." style="display:none" /></td>
                                                <td style="padding-left:10px"><div id="qqloginbox" style="display:none"><a target="_blank" href="/user/logintoqq.aspx" onclick='toQzoneLogin()'><img src="/skin/public/Connect_logo_3.png" /></div></a></td>
                                            </tr>
                                        </table>
                                            <script type="text/javascript">
                                                if(<%=ZK.config("qqloginswitch") %>=="1")document.getElementById("qqloginbox").style.display="";
                                                 function toQzoneLogin(){return;
                                                     var id="<%=ZK.config("qqloginid") %>";
                                                     if(id==""||id=="err"){alert("QQ登录接口未配置！");window.location="http://connect.opensns.qq.com";}
                                                     else {var A=window.open("/user/logintoqq.aspx","TencentLogin","width=450,height=320,menubar=0,scrollbars=1,resizable=1,status=1,titlebar=0,toolbar=0,location=1");}
                                                 } 
                                            </script>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script type="text/javascript">
            function checkmlogin(){ajax("get","reg.aspx?act=ajax&check=1&rd="+Math.random(),"",function OnHandler(){if(xmlHttp.readyState == 4){if(xmlHttp.responseText=='ok')window.location='/';}});}
            setInterval(checkmlogin,3000);
        </script>
        </form>
        <UC:foot ID="foot1" runat="server" />
    </div>
</body>
</html>
