<%@ page language="C#" autoeventwireup="true" inherits="Passport_UserReg, HoWaveIMSV5.0" enableeventvalidation="false" debug="false" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="../UserControls/CopyRight.ascx" TagName="CopyRight" TagPrefix="uc1" %>
<!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">
    <title>会员注册</title>
    <link href="../Passport/Css/PassportStyleSheet.css" rel="stylesheet" type="text/css" />
     <script src="Js/passport.js" type="text/javascript"></script>  
</head>
<body style="margin-top:5px;">
    <form id="form1" runat="server">
<script type="text/javascript">
function ShowTips(field)
{  var div_name="reg_"+field.id;
  document.getElementById(div_name).className='reg_tips_onclick'; 

}
function HidenTips(field)
{  
  var div_name="reg_"+field.id;
  if(field.value=="")
  {
       document.getElementById(div_name).className='reg_tips_empty';       
  }
  else
  {
      document.getElementById(div_name).className='reg_tips_onchange';
  }

}
function ShowInPut(field)
{  
  var div_name="reg_"+field.id;
  
     document.getElementById(div_name).className='reg_tips_onchange';
}
function readagreement()
{
    var agreement=document.getElementById("reg_agreement");
    var submit_btn=document.getElementById("RegSubmitButton");    
    if(submit_btn.disabled==true)
    {        
      submit_btn.disabled=false;
      agreement.style.display="";
    }
    else
    {
       submit_btn.disabled=true;
       agreement.style.display="none";
    }
  
}
</script> 
<script  type="text/javascript">

function killErrors() {
return true;
}
window.onerror = killErrors;

</script>
<!--容错代码结束-->
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"/>
      
  <div style="width:760px; margin-left:auto; margin-right:auto;"> 
    <div style=" float:left; height:60px; text-align:right; width:250px"><img src="Images/passport_logo.gif" ></div>
    <div style="width:490px; height:60px;float:right;color:#b70000; font-size:13px; text-align:right; font-weight:bold; vertical-align:bottom">
        <br />
        <br />       
        通 行 证 在 手，网 络 随 你 游</div>
    <div style="border-top:solid 2px #2d5bbb; width:100%; padding:0; margin:0; height:2px; background-color:#EDF2FC;text-align:center; padding:5px;  font-size:13px; color: #2d5bbb">
        <strong>注册步骤：</strong>-&gt;填写信息 -&gt; 资料确认 -&gt;注册成功<br />
    </div>    
  </div> 
  <br />
      <!--注册资料填写-->
      <div id="reg_form" style="border:solid 1px #CCDAF8; width:700px; margin-left:auto; margin-right:auto;">
         <!--注册必填项-->        
         <div id="reg_base_info" class="reg_table">
            <div style="width:99%;background-color:#EDF2FC;text-align:left; padding:5px;  font-size:13px; color: #2d5bbb; margin:2px;"><b>请填写通行证信息</b></div>
            <div class="reg_row">
               <div class="reg_div_left">
                   <span style="color: #d11b00">*</span>通行证用户名：</div>               
                <div class="reg_div_right">
                   <div style="float:left;"><asp:TextBox ID="UserName" runat="server" CssClass="reg_textbox"/></div>
                   <div id="reg_UserName" class="reg_tips">
                     <div id="Y_UserName"><asp:literal ID="RegNameLength" runat="server" />个字符(包括小写字母、数字、下划线、中文)，一个汉字为两个字符，推荐使用中文会员名。一旦注册成功会员名不能修改。</div>
                     <div id="W_UserName">
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="会员名不能为空" ControlToValidate="UserName"/></div>
                   </div>
               </div>   
            </div>   
            <div class="reg_row">
               <div class="reg_div_left" style="height: 31px">
                   <span style="color: #d11b00">*</span>通行证密码：</div>
               <div class="reg_div_right">
                  <div style="float:left;">
                     <div ><asp:TextBox ID="UserPassword" runat="server" CssClass="reg_textbox" TextMode="Password" MaxLength="16"/></div>
                     <div style="margin:5px 0;">  
                       <asp:Panel ID="ShowPasswordCheck" runat="server"> 
                          <ajaxToolkit:PasswordStrength ID="PasswordStrength2" runat="server" TargetControlID="UserPassword"  
                                       StrengthIndicatorType="BarIndicator"
                                       BarBorderCssClass="BarBorder"
                                       BarIndicatorCssClass="BarIndicatorStyle"
                                       PreferredPasswordLength="16" 
                                       PrefixText="Strength"
                                       HelpStatusLabelID="TextBox1_HelpLabel"
                                       TextCssClass="TextIndicator_TextBox1" 
                                       MinimumNumericCharacters="1"
                                       MinimumSymbolCharacters="1"
                                       RequiresUpperAndLowerCaseCharacters="true" /> 
                       </asp:Panel>
                     </div>
                  </div>   
                  <div id="reg_UserPassword" class="reg_tips">
                    <div id="Y_UserPassword">密码由6-16个字符组成，请使用英文字母加数字或符号的组合密码，不能单独使用英文字母、数字或符号作为您的密码。</div>
                    <div id="W_UserPassword">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="密码不能为空" ControlToValidate="UserPassword"/></div>
                  </div>
               </div>   
            </div>
            <div class="reg_row">
               <div class="reg_div_left">
                   请再输入一次密码：</div>
               <div class="reg_div_right">
                  <div style="float:left;"><asp:TextBox ID="RePassword" runat="server" CssClass="reg_textbox" TextMode="Password"/></div>
                  <div id="reg_RePassword" class="reg_tips">
                     <div id="Y_RePassword">请再输入一遍您上面输入的密码。</div>
                     <div id="W_RePassword">
                         <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="两次输入密码不正确" ControlToValidate="RePassword" ControlToCompare="UserPassword"  /></div>
                  </div>   
               </div>   
            </div>
            <div class="reg_row">
               <div class="reg_div_left">
                   <span style="color: #d11b00">*</span>接收邮件地址：</div>
               <div class="reg_div_right">
                  <div style="float:left;"><asp:TextBox ID="UserEmail" runat="server" CssClass="reg_textbox"/></div>
                  <div id="reg_UserEmail" class="reg_tips">
                     <div id="Y_UserEmail">当你忘记密码时用于将密码发回到你所填写的邮件另外还将用于注册验证</div>
                     <div id="W_UserEmail">
                         <asp:RegularExpressionValidator ID="RegularExpressionValidator1"  ControlToValidate="UserEmail" runat="server" ErrorMessage="输入邮箱不正确" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"/></div>
                  </div>
               </div>   
            </div>
             <div class="reg_row">
               <div class="reg_div_left">
                   <span style="color: #d11b00">*</span>密码提示问题：</div>
               <div class="reg_div_right">
                    <div style="float:left;">
                          <asp:DropDownList ID="UserQuestion" runat="server" CssClass="reg_textbox" >
                             <asp:ListItem Text="请选择" Value=""  Selected="True" />
                            <asp:ListItem>我最好的朋友是谁？</asp:ListItem>
                            <asp:ListItem>我最喜爱的颜色？</asp:ListItem>
                            <asp:ListItem>我最喜爱的影星？</asp:ListItem>
                            <asp:ListItem>我的宠物名字？</asp:ListItem>
                            <asp:ListItem>我最喜爱的食物？</asp:ListItem>
                            <asp:ListItem>我最大的爱好？</asp:ListItem>
                            <asp:ListItem>我最喜欢的卡通人物名字？</asp:ListItem>
                            <asp:ListItem>我母亲/父亲的生日？</asp:ListItem>
                            <asp:ListItem>我最喜欢的运动队全称？</asp:ListItem>
                            <asp:ListItem>我最欣赏的一位名人的名字？</asp:ListItem>
                            <asp:ListItem>我的座右铭是？</asp:ListItem>
                            <asp:ListItem>我最喜欢的一句影视台词？</asp:ListItem>
                            <asp:ListItem>我中学校名全称是什么？</asp:ListItem>
                         </asp:DropDownList>
                    </div>
                    <div id="reg_UserQuestion"class="reg_tips">请输入答案</div>
               </div>
            <div class="reg_row">
               <div class="reg_div_left">
                   <span style="color: #d11b00">*</span>密码提示答案：</div>
               <div class="reg_div_right">
                  <div style="float:left;"><asp:TextBox ID="UserAnswer" runat="server" CssClass="reg_textbox"/></div>
                  <div id="reg_UserAnswer"  class="reg_tips">
                    <div id="Y_UserAnswer">6个字符、数字或3个汉字以上（包括6个）。</div>
                    <div id="W_UserAnswer">                       </div>
                  </div>  
               </div>   
            </div>           
            <asp:PlaceHolder ID="RegProtected" runat="server" Visible="false">
                <div class="reg_row">
                   <div class="reg_div_left">注册回答问题：</div>
                   <div class="reg_div_right">
                      <div style="float:left;"><asp:Literal ID="RegCheckQuestion" runat="server" /></div>                  
                   </div>   
                </div>
                <div class="reg_row">
                   <div class="reg_div_left">注册回答答案：</div>
                   <div class="reg_div_right">
                      <div style="float:left;"><asp:TextBox ID="ReqCheckAnswer" runat="server" /></div>                  
                   </div>   
                </div>
            </asp:PlaceHolder>
         </div>
         <!--注册认证方式-->
         <div id="reg_identiy">
         
         </div>
         <br /><br />
         <!--注册选填项，后台控制--->
         <div id="reg_choose_item" class="reg_table">
             <div style="width:99%;background-color:#EDF2FC;text-align:left; padding:5px;  font-size:13px; color: #2d5bbb; margin:2px;"><b>请填写其它信息</b></div>
            <div class="reg_row">
               <div class="reg_div_left">
                   性别：</div>
               <div class="reg_div_right">
                    <div style="float:left;">
                         <asp:RadioButtonList ID="UserSex" runat="server" RepeatDirection="Horizontal">
                           <asp:ListItem Text="男" Value="0" />
                           <asp:ListItem Text="女" Value="1" />
                         </asp:RadioButtonList>
                    </div>                    
             </div>
             <div class="reg_row">
               <div class="reg_div_left">
                   校验码：</div>
               <div class="reg_div_right">
                  <div style="float:left;">
                  <asp:TextBox ID="CheckCode" runat="server" Width="100px" />
                        <img src="../CheckCode.aspx" /></div>
                  <div id="reg_CheckCode" class="reg_tips">
                     <div id="Y_CheckCode">请输入左侧字符</div>
                     <div id="W_CheckCode">
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="请输入验证码" ControlToValidate="CheckCode"/></div>
                  </div>   
               </div>   
            </div>
            <div style="width:100%; padding-top:10px;"><input type="checkbox" value="1"  onclick="readagreement();" id="read_agreement"/>阅读注册服务协议</div>
         </div>         
      </div>
      <br /><br />
      <div  align="center">
       <asp:Literal ID="wait" runat="server" />
             
      </div>
      <div align="center">
          <asp:Button ID="RegSubmitButton" runat="server" Text="同意以下条款，提交注册信息" OnClick="Button1_Click"  />
      </div>
      <br />
      <!--注册协议区-->
      <div id="reg_agreement" class="reg_table" style="display:none;">
         <div class="regtitle_style">
            <span  class="regtitle">阅读<asp:Label ID="reg_title" runat="server" />服务协议</span>
         </div>
         <div id="content">
             <asp:TextBox ID="reg_content" runat="server" TextMode="MultiLine" ReadOnly="true" CssClass="regcontent"/>
         </div>
      </div>  
    </div>
            
        <asp:HiddenField ID="H_MinName" runat="server" />
      <asp:HiddenField ID="H_MaxName" runat="server" />
      <asp:HiddenField ID="H_RegIPType" runat="server" />
      <asp:HiddenField ID="H_RegMinute" runat="server" />
      <asp:HiddenField ID="H_RegAnserCheck" runat="server" />
      <asp:HiddenField ID="H_ComeUrl" runat="server" />
      <asp:HiddenField ID="HiddenField7" runat="server" />
      <asp:HiddenField ID="HiddenField8" runat="server" />
        
      </div> 
      <br />    
      <div style="width:760px; margin-left:auto; margin-right:auto; text-align:center;border-top:solid 2px #2d5bbb; padding-top:10px;"><uc1:CopyRight ID="CopyRight1" runat="server" /></div> 
    </form>
<script type="text/javascript" language="javascript">
   document.getElementById("RegSubmitButton").disabled=true;
</script>
</body>
</html>
