<%@ page language="C#" autoeventwireup="true" inherits="Usercenter_UserFP, App_Web_rbxcxpwt" theme="Themes" stylesheettheme="Themes" %>

<!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>
    <style type="text/css">
        .style1
        {
            width: 14%;
        }
    </style>
    <base target="_self"></base>
</head>
<body>
    <form id="form1" runat="server">
    <table cellpadding="0" cellspacing="0" class="table_box">
        <tr>
            <td class="right_bg">
                <span class="right_title">
                    <img src="../Images/homen.gif" class="img_style" />
                    您的当前位置：找回密码</span>
            </td>
        </tr>
        <tr>
            <td class="warning">
                <div>
                    &nbsp;&nbsp;1、根据您的账号选择正确的问题，完成操作后您的密码将被重置！<br />
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <table border="0" cellpadding="0" cellspacing="1" width="100%" class="table_notitle">
                    <tr>
                        <td bgcolor="#ffffff" height="30" align="right" class="td01">
                            用户名：
                        </td>
                        <td bgcolor="#ffffff" height="30" width="*" align="left">
                            <input id="userName" class="txt" runat="server" type="text" />
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#ffffff" height="30" align="right"  class="td01">
                            密保问题：
                        </td>
                        <td bgcolor="#ffffff" height="30" width="*" align="left">
                            <asp:DropDownList ID="ddlIssue" runat="server">
                                <asp:ListItem>我的爱好</asp:ListItem>
                                <asp:ListItem>我喜欢的运动</asp:ListItem>
                                <asp:ListItem>我的小学班主任</asp:ListItem>
                                <asp:ListItem>我的初中语文老师</asp:ListItem>
                                <asp:ListItem>我的宠物名称</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#ffffff" height="30" align="right"  class="td01">
                            密保答案：
                        </td>
                        <td bgcolor="#ffffff" height="30" width="*" align="left">
                            <input id="userPassword" class="txt" runat="server" type="text" maxlength="16" />
                            <asp:Label ID="lblTeext" runat="server" Text="" ForeColor="Red"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center" bgcolor="#ffffff" height="30" width="30%" align="right">
                            <asp:Button ID="btnOK" runat="server" Text="确 定" OnClick="btnOK_Click" />
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:Button ID="btnc" runat="server" Text="重 置" OnClick="btnc_Click" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>

<script type="text/javascript" language="javascript">
    function Determine() {

        var determine = /^[A-Za-z0-9_-]{1,16}$/;
        if (!determine.exec(document.getElementById("userName").value)) {
            alert("用户名只能是1-16位的数字和字母和下划线组成！");
            document.getElementById("userName").select();
            return false;
        } else if (document.getElementById("userName").value == "") {
            alert("用户名不能为空！");
            document.getElementById("userName").select();
            return false;
        } else if (document.getElementById("userPassword").value == "") {
            alert("答案不能为空！");
            document.getElementById("userPassword").select();
            return false;
        }

        return true;
    }
</script>

</html>
