<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ChangePassword.aspx.cs" Inherits="NikaiDSR.ChangePassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script language='javascript'>
        function Delayer() {
            setTimeout("Redirection()", 5000);
        }
        function Redirection() {
            window.location = "Login.aspx";
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server" ClientIDMode="Predictable">
    <div class="content_holder">
        <h1>
            <asp:Label ID="lblTitle" runat="server" SkinID="headerLabel" Text="<%$ Resources:Res, Change_password%>"></asp:Label></h1>
        <br />
        <div class="min_width bg_shadow">
            <div class="errMsg" id="errMsg" runat="server" style="display: none;">
                <div class="errMsgText" id="errMsgText" runat="server"></div>
                <br />
            </div>
            <table cellspacing="0" cellpadding="0" border="0">
                <tbody>
                    <tr>
                        <td width="200"><asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Res, Old_Password%>" /><span class="required">*</span>
                        </td>
                        <td width="200">
                            <asp:TextBox ID="txtOldpass" runat="server" type="text" MaxLength="50" TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="OldPassword" runat="server" ControlToValidate="txtOldpass"
                                Style="color: Red;" ErrorMessage="*" ToolTip="<%$ Resources:Res, Old_password_is_required%>"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td><asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Res, New_Password%>" /><span class="required">*</span>
                        </td>
                        <td>
                            <asp:TextBox ID="txtNewPass" runat="server" type="text" MaxLength="50" TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="NewPassword" runat="server" ControlToValidate="txtNewPass"
                                Style="color: Red;" ErrorMessage="*" ToolTip="<%$ Resources:Res, New_password_is_required%>"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td><asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Res, Confirm_Password%>" /><span class="required">*</span>
                        </td>
                        <td>
                            <asp:TextBox ID="txtConPass" runat="server" type="text" MaxLength="50" TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="ConPassword" runat="server" ControlToValidate="txtConPass"
                                Style="color: Red;" ErrorMessage="*" ToolTip="<%$ Resources:Res, Confirm_password_is_required%>"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:CompareValidator ID="CPasswordRequired" runat="server" ControlToCompare="txtNewPass"
                                ControlToValidate="txtConPass" ErrorMessage="<%$ Resources:Res, Your_passwords_do_not_match_up%>"
                                Display="Dynamic" Style="color: Red;" />
                        </td>
                    </tr>
                </tbody>
            </table>
            <div class="btn_submit">
                <asp:Button ID="btnSubmit" runat="server" Text="<%$ Resources:Res, Save%>" SkinID="submitButton" CommandName="save"
                    OnCommand="btnSubmit_Command" />
            </div>
        </div>
    </div>
</asp:Content>
