<%@ Page Language="C#" MasterPageFile="~/AngelShopMasters.Master" AutoEventWireup="true"
    CodeBehind="Forgot2.aspx.cs" Inherits="AngelShop.Forgot2" Title="Angel Studio Mall Management System" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <script language="javascript" type="text/javascript">
                function checkUserName(){ 
                         var pass=document.getElementById("<%=txtNewPass.ClientID%>"); 
                        var rpass=document.getElementById("<%=TexttxtNewPassg.ClientID%>"); 
                        if(pass.value==""){ 
                        alert("Passwords can not be empty."); 
                        pass.focus(); 
                        return false; 
                        }else if (pass.value.length<4 || pass.value.length>16){ 
                        alert("The length of the password must be 4-16 characters."); 
                        pass.select(); 
                        return false; 
                        }else if(rpass.value!=pass.value){ 
                        alert("Confirm the password and enter inconsistent."); 
                        rpass.select(); 
                        return false; 
                        }else{return true;} 
}
    </script>

    <div class="Contact">
        <div class="dengl">
            <ul>
                <li>
                    <img src="images/forgotPW_07%20(3).jpg" width="311" height="29" /></li>
                <li><a href="#">
                    <img src="images/forgotPW_05.jpg" name="Image18" width="324" height="29" border="0"
                        id="Image18" /></a></li>
                <li><a href="#">
                    <img src="images/forgotPW_07 (2).jpg" name="Image19" width="323" height="29" border="0"
                        id="Image19" /></a></li>
                <div class="clear">
                </div>
            </ul>
            <div class="clear">
            </div>
        </div>
        <div class="dengl01">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" style="font-size: 14px;
                line-height: 40px; margin-top: 30px;">
                <tr>
                    <td colspan="2">
                        <div align="left">
                            E-mail verification code</div>
                    </td>
                    <td>
                        <asp:TextBox ID="txtCode" runat="server" CssClass="kuang"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td width="25%">
                        <div align="right">
                            New password</div>
                    </td>
                    <td width="2%">
                        &nbsp;
                    </td>
                    <td width="40%">
                        <asp:TextBox ID="txtNewPass" runat="server" CssClass="kuang"  TextMode="Password"></asp:TextBox>
                    </td>
                    <td width="18%">
                        &nbsp;
                    </td>
                    <td width="27%">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        <div align="right">
                            Confirm password</div>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:TextBox ID="TexttxtNewPassg" runat="server" class="kuang"  TextMode="Password"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        <div align="right">
                        </div>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:ImageButton ID="btnSure" runat="server" ImageUrl="images/jt_03.jpg" Width="60"
                            Height="25" OnClick="btnSure_Click"  OnClientClick="return checkUserName()"/>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </div>
</asp:Content>
