<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Find_Pass.aspx.cs" Inherits="RM.Web.Member.Find.Find_Pass" %>

<!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">
    <link href="/Template/default/css/mall.css" rel="stylesheet" type="text/css" />
    <link href="/Themes/Styles/Site.css" rel="stylesheet" type="text/css" />
    <script src="/Themes/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/FunctionJS.js" type="text/javascript"></script>
    <title><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Find_Make_Title")%></title>
    <style type="text/css">
        span { width: 20%; float: left; margin-left: 5%; }
        span h2 { color: Black; }
        .style1 { width: 129px; }
    </style>
</head>
<body>
    <div style="width:960px; margin:0 auto;padding-bottom: 10px; border-bottom: 1px solid #black; height: auto">
        <h1 style="color: Black">
            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Find_Make_Title")%></h1>
        <br />
        <span>
            <h2>
                <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ReminderList_txzcxx")%></h2>
        </span><span>
            <h2>
                 <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ReminderList_yyxz")%></h2>
        </span><span>
            <h2 style="border-bottom: 1px solid #69B3F2; color: blue; padding-bottom: 8px;">
                <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("CurrentUserManager_xgmm")%></h2>
        </span>
    </div>
    <div style="margin: 10%;">
        <input id="status" type="hidden" value="<%=status %>" />
        <input id="useraccount" type="hidden" value="<%=useraccount %>" />
        <input id="email" type="hidden" value="<%=email %>" />        
        <input id="md" type="hidden" value="<%=md %>" />
        <table style="margin: 10%">
            <tr>
                <th class="style1">
                   <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_Pwd")%> :
                </th>
                <td>
                    <input type="password" id="Pwd" style="width: 254px;" />
                </td>
            </tr>
            <tr>
                <th class="style1">
                      <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Find_Pass_zcsrpwd")%> :
                </th>
                <td>
                    <input type="password" id="Pwd1" style="width: 254px;" />
                </td>
            </tr>
            <tr style="margin-top: 8px;">
                <th class="style1">
                </th>
                <td>
                    <input type="button" value="<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("QuesNaire_submitBtn")%> " onclick="oncheckUname()" />
                </td>
            </tr>
        </table>
    </div>
</body>
</html>
<script type="text/javascript">
    var SubmitOrHidden = function (evt) {
        evt = window.event || evt;
        if (evt.keyCode == 13) {//如果取到的键值是回车
            oncheckUname();
        } else {
            //其他键  dosomething
        }
    }
    window.document.onkeydown = SubmitOrHidden;
    //异步判断session是否超时
    function oncheckUname() {
        var Pwd1 = $("#Pwd1").val();
        var Pwd = $("#Pwd").val();
        var status = $("#status").val();
        var useraccount = $("#useraccount").val();
        var email = $("#email").val();        
        var md = $("#md").val();
        var url = window.location.host;
        if (Pwd != Pwd1) {
            return alert("<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Find_Pass_myssbyzcxxsr")%> ");
        } else {
            getAjax("/Member/Find/GetUserNameAndEmail.ashx", "NameMD="+md+"&email2="+email+"&useraccount="+useraccount+"&Pwd=" + Pwd + "&status=" + status + "&url=" + url, function (rs) {
                if (rs == "3") {
                    alert("<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Find_Pass_yzygsqcxyz")%> ");
                    location.href = "/Member/Find/Find_Pass.aspx";
                } else if (rs == "2") {
                    alert("<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Find_Pass_xgsbsz")%> ");
                } else {
                   
                    confirm("<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Find_Pass_czmmcgsftzdym")%>")
                    {
                        location.href = "/Frame/Login.aspx";
                    }
                }
            });
        }
    }

</script>
