<%@ Page Language="C#" AutoEventWireup="false" CodeBehind="Reg.aspx.cs" Inherits="web.Template.moban.Reg" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title><%=GetResourceString("MemberRegister")%> －－ <%=config.SiteTitle%></title><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	<link href="img/css/base.css" rel="stylesheet" type="text/css" media="all" />

<link href="img/css/index.css" rel="stylesheet" type="text/css" media="all" />
<link href="img/css/style.css" rel="stylesheet" type="text/css" media="all" />
 <link href="img/css/fillordernew.css" rel="stylesheet" type="text/css" media="all" />
 <link href="img/css/Dialog.css" rel="stylesheet" type="text/css" />
		 <script type="text/javascript">
 function SetCwinHeight(cs){
  var bobo=document.getElementById(cs); //iframe id
  if (bobo){
   if (bobo && !window.opera){
    if (bobo.contentDocument && bobo.contentDocument.body.offsetHeight){
     bobo.height = bobo.contentDocument.body.offsetHeight;
    }else if(bobo.Document && bobo.Document.body.scrollHeight){ bobo.height = bobo.Document.body.scrollHeight-0;
         }
   }
    else
    {
        if(bobo.contentWindow.document && bobo.contentWindow.document.body.scrollHeight)
            bobo.height = bobo.contentWindow.document.body.scrollHeight;//Opera
    }
  }
 }
</script>
<script type="text/javascript" language="javascript"> 
function yz()
{
            if (document.getElementById("txtName").value == "")
            {
              alert("请填写用户名!");
              document.getElementById("txtName").focus();
              return false;
            }
             if (document.getElementById("Tdh").value == "")
            {
              alert("请填写昵称!");
              document.getElementById("Tdh").focus();
              return false;
            }
            if (document.getElementById("txtPassword").value == "")
            {
              alert("请填写密码!");
              document.getElementById("txtPassword").focus();
              return false;
            }
             if (document.getElementById("txtPassword").value.length<6)
            {
              alert("密码不能小于6位！");
              document.getElementById("txtPassword").focus();
              return false;
            }
             if (document.getElementById("txtPassword2").value == "")
            {
              alert("请填写确认密码!");
              document.getElementById("txtPassword2").focus();
              return false;
            }
            if (document.getElementById("txtPassword2").value != document.getElementById("txtPassword").value)
            {
              alert("密码和确认密码不一致！");
              document.getElementById("txtPassword").focus();
              return false;
            }
             if (document.getElementById("txtEmail").value == "")
            {
              alert("请填写用EMAIL!");
              document.getElementById("txtEmail").focus();
              return false;
            }
           
}
</SCRIPT>
	</HEAD>
	<SCRIPT language=JavaScript>
<!--
function Check(){
    var Name=document.getElementById('txtName').value;
	window.open("checkname.aspx?name="+Name,"Check","width=350,height=80,top=200,left=230,status=0,scrollbars=0,resizable=1,menubar=0,toolbar=0,location=0");
}

//-->
</SCRIPT>
	<body>
	<iframe id=head src="modHtml/header.html" onload="Javascript:SetCwinHeight('head')" width=100% height="196" frameborder=no  MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=no></iframe>
		<div style="width:990px;margin:0px auto;"><!--头部导航条开始--><!--头部导航条结束-->
		<form id="Form1" method="post" name="form" runat="server" onsubmit="return yz()">
			
				
	
	   <div class="news_dt">
    <ul>
    <li class="dt_left"></li>
      <li class="dt_bg">
        <div align="left" style="font-weight: normal;"><%=GetResourceString("WhereYouAre")%> <a href="Default.html"><%=GetResourceString("Home")%></a> → <%=GetResourceString("MemberRegister")%></div>
      </li>
      <li class="dt_right"></li>
    </ul>
    </div>		
    		
         <div class="regTitle">
            <div class="inBox">
                <span class="left">欢迎成为<%= config.SiteName%>会员</span>
                <span class="right">
                	<a href="login.aspx">登录</a><span class="div">|</span><a href="ForgetPws.aspx">找回密码</a>
                </span>
            </div>
        </div>
        <br />
  <table width="100%" cellspacing="0" cellpadding="0" style="border-left:8px #DADADA solid;border-top:1px #DADADA solid;border-right:1px #DADADA solid;border-bottom:1px #DADADA solid;">
					<tr>
						<td class="ml"></td>
						<td class="mm" valign="top">
							<table cellpadding="0" cellspacing="8" width="100%">
            <tr> 
              <td width="265" align="right" bgcolor="#F3F3F3"> 
                <%=GetResourceString("MemberName")%>
                ： </td>
              <td colspan="2"> <asp:TextBox id="txtName" MaxLength="50" name="UserName" runat="server" Width="184px" class="input1" Height="25px"/> 
                <FONT color="red">*</FONT> <input id="Button1" type="button" value="检测用户名" onclick="javascript:Check();" class="def_bt" style="vertical-align:middle;" /> 
                </td>
            </tr>
            <tr> 
              <td align="right" bgcolor="#F3F3F3"> 昵称：</td>
              <td colspan="2"><asp:TextBox ID="Tdh" runat="server" Width="184px" class="input1" Height="25px"></asp:TextBox> 
                <FONT color="red">*</FONT></td>
            </tr>
            <tr> 
              <td width="265" align="right" bgcolor="#F3F3F3"> 
                <%=GetResourceString("MemberPassword")%>
                ： </td>
              <td colspan="2"> <asp:TextBox TextMode="Password" id="txtPassword" MaxLength="50"  runat="server" Width="184px" class="input1" Height="25px"/> 
                <FONT color="red">*</FONT> </td>
            </tr>
            <tr> 
              <td width="265" align="right" bgcolor="#F3F3F3"> 
                <%=GetResourceString("MemberPasswordConfirm")%>
                ： </td>
              <td colspan="2"> <asp:TextBox TextMode="Password" id="txtPassword2" MaxLength="50"  runat="server" Width="184px" class="input1" Height="25px"/> 
                <FONT color="red">*</FONT> </td>
            </tr>
            <tr style="display:none;"> 
              <td align="right" bgcolor="#F3F3F3" style="height: 24px">手机号码： </td>
              <td colspan="2" style="height: 24px">&nbsp;<asp:TextBox  id="tel" MaxLength="50"  runat="server" Width="184px" class="input1" Height="25px"/>
              <br /> <asp:Label ID="dxsm" runat="server"></asp:Label>
              </td>
            </tr>
              <tr style="display:none;"> 
              <td width="265" align="right" bgcolor="#F3F3F3">交易密码：</td>
              <td colspan="2"> <asp:TextBox TextMode="Password" ID="jypws"  runat="server" Width="184px" class="input1" Height="25px"></asp:TextBox> 
                <FONT color="red">* （说明：为保证你的资金安全，交易密码不要与会员密码相同）</FONT></td>
            </tr>
           <tr style="display:none;"> 
              <td width="265" align="right" bgcolor="#F3F3F3" style="height: 26px">确认交易密码：</td>
              <td colspan="2" style="height: 26px"> <asp:TextBox TextMode="Password" ID="rejypws" runat="server" Width="184px" class="input1" Height="25px"></asp:TextBox> 
                <FONT color="red">*</FONT></td>
            </tr>
            <tr> 
              <td width="265" align="right" bgcolor="#F3F3F3"> e-mail： </td>
              <td colspan="2"> <asp:TextBox id="txtEmail" MaxLength="80" Size="20" runat="server" Width="184px" class="input1" Height="25px"/> 
                &nbsp; <FONT color="red"> *</FONT> <br> <asp:CheckBox id="cbxHideEmail" Text="是否接收本站的Email信息" runat="server" Checked="True" /> 
              </td>
            </tr>
            <tr style="display:none;"> 
              <td width="265" align="right" bgcolor="#F3F3F3"> 
                <%=GetResourceString("MemberQuestion")%>
                ： </td>
              <td colspan="2"> <asp:TextBox id="txtQuestion" MaxLength="100" Size="50" runat="server" class="input1" Height="25px"/> 
                <FONT color="red">*</FONT> </td>
            </tr>
            <tr style="display:none;"> 
              <td width="265" align="right" bgcolor="#F3F3F3"> 
                <%=GetResourceString("MemberAnswer")%>
                ： </td>
              <td colspan="2"> <asp:TextBox id="txtAnswer" MaxLength="100" Size="50" runat="server" class="input1" Height="25px"/> 
                <FONT color="red">*</FONT> </td>
            </tr>
            <tr style="display:none;"> 
              <td width="265" align="right" bgcolor="#F3F3F3" style="height: 24px"> 
                QQ： </td>
              <td colspan="2" style="height: 24px"> <asp:TextBox id="txtQQ" MaxLength="20" Size="20" runat="server" Width="184px" class="input1" Height="25px"/> 
              </td>
            </tr>
            <tr style="display:none;"> 
              <td width="265" align="right" bgcolor="#F3F3F3"> ICQ： </td>
              <td colspan="2"> <asp:TextBox id="txtICQ" MaxLength="20" Size="20" runat="server" Width="184px" class="input1" Height="25px"/> 
              </td>
            </tr>
            <tr style="display:none;"> 
              <td width="265" align="right" bgcolor="#F3F3F3"> MSN： </td>
              <td colspan="2"> <asp:TextBox id="txtMSN" MaxLength="100" Size="20" runat="server" Width="184px" class="input1" Height="25px"/> 
              </td>
            </tr>
            <tr> 
              <td align="right" bgcolor="#F3F3F3">推荐人(推荐人的会员名称)：</td>
              <td colspan="2"><asp:TextBox ID="Ttjr" runat="server" Width="184px" class="input1" Height="25px"></asp:TextBox> 
                <font color="#FF3300">没有推荐人,可不填!</font></td>
            </tr>
            <tr style="display:none;"> 
              <td align="right" bgcolor="#F3F3F3">选择头像：</td>
              <td width="67" valign="bottom"> <select name="avatarsel" onchange="document.images.avatarpic.src = this[this.selectedIndex].value;" class="input1">
                  <option value="img/head/1.gif"> icon1</option>
                  <option value="img/head/2.gif"> icon2</option>
                  <option value="img/head/3.gif"> icon3</option>
                  <option value="img/head/4.gif"> icon4</option>
                  <option value="img/head/5.gif"> icon5</option>
                  <option value="img/head/6.gif"> icon6</option>
                  <option value="img/head/7.gif"> icon7</option>
                  <option value="img/head/8.gif"> icon8</option>
                  <option value="img/head/9.gif"> icon9</option>
                  <option value="img/head/10.gif"> icon10</option>
                  <option value="img/head/11.gif"> icon11</option>
                  <option value="img/head/12.gif"> icon12</option>
                  <option value="img/head/13.gif"> icon13</option>
                  <option value="img/head/14.gif"> icon14</option>
                  <option value="img/head/15.gif"> icon15</option>
                  <option value="img/head/16.gif"> icon16</option>
                  <option value="img/head/17.gif"> icon17</option>
                  <option value="img/head/18.gif"> icon18</option>
                  <option value="img/head/19.gif"> icon19</option>
                  <option value="img/head/20.gif"> icon20</option>
                </select> </td>
              <td width="1163"><img src='img/head/1.gif' name='avatarpic' align='absmiddle' border=0> 
              </td>
            </tr>
            <tr> 
              <td width="265" height="100" align="right" bgcolor="#F3F3F3"> </td>
              <td colspan="2" valign="top"> <asp:Button id="btnRegister" runat="server" Text="提交注册信息" class="def_bt" style="vertical-align:middle;" ></asp:Button> 
                <br> <asp:CheckBox id="xy" Text="是否接收本站协议" runat="server" Checked="True" />	
                <a href="xy.html" target="_blank"><font color="#FF0000">查看协议</font> 
                </a> </td>
            </tr>
          </table>
					  </td>
						<td class="mr"></td>
					</tr>
				</table>
			<br />
		</form> </div>
	<iframe id="help" src="modHtml/helper.html"  onload="Javascript:SetCwinHeight('help')" width=100% frameborder=no  MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=no></iframe>
   
    <script language="JavaScript" src="stat.aspx" type="text/JavaScript"></script>
   
	</body>
</HTML>
