<%@ page language="C#" autoeventwireup="true" inherits="Passport_confirm_email, WebApp_deploy" title="Emial绑定" %>

<!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 id="Head1" runat="server">
    <title>绑定E-Mail邮箱</title>
    <link href="Css/PassportStyleSheet.css" rel="stylesheet" type="text/css" />
    <script src="../Skin/CommStyle/js/jquery-1.8.3.min.js" type="text/javascript"></script>
    <link href="../Skin/CommStyle/main.css" rel="stylesheet" type="text/css" />
    <script src="Js/passport.js" type="text/javascript"></script>
    <script type="text/javascript">

        function killErrors() {
            return true;
        }
        window.onerror = killErrors;

    </script>
</head>
<body>
    <form id="form1" runat="server">
    <hl:Top ID="Top1" runat="server" />
    <div id="main" class="main">
        <div id="RegStep">
            <ul>
                <li><a href="PasswordManager.aspx">修改密码</a></li>
                <li><a href="Confirm_Email.aspx">绑定E-Mail</a></li>
            </ul>
        </div>
        <br />
        <table style="margin-left: auto; margin-right: auto; border: solid 1px gray; width: 877px;
            height: 169px;">
            <tr>
                <td colspan="2" style="background: url(Images/my_left_head.gif); font-size: 13px;
                    font-weight: bold; padding-left: 20px;">
                    修改EMail地址
                </td>
            </tr>
            <tr>
                <td colspan="2" style="height: 50px;">
                    推荐使用sohu、sina、163.com等邮箱地址为注册邮箱，以确保您的邮件能及时到达。
                </td>
            </tr>
            <tr>
                <td style="background: #EEEEEE; width: 20%; text-align: right; height: 20px;">
                    用户名：
                </td>
                <td style="width: 79%;">
                    <asp:Literal ID="UserName" runat="server" />
                </td>
            </tr>
            <tr>
                <td style="background: #EEEEEE; width: 20%; text-align: right; height: 20px;">
                    当前E-Mail地址：
                </td>
                <td>
                    <asp:Literal ID="OldEmail" runat="server" />
                </td>
            </tr>
            <tr>
                <td style="background: #EEEEEE; width: 20%; text-align: right; height: 20px;">
                    新E-MAIL地址：
                </td>
                <td style="text-align: left">
                    <div style="float: left; padding-top: 5px;">
                        <asp:TextBox ID="NewEmail" runat="server" CssClass="text p2" /></div>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="NewEmail"
                        ErrorMessage="邮箱格式不对！" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                        CssClass="login_err" Width="133px" Height="17px"></asp:RegularExpressionValidator>
                    <div style="float: left; padding-left: 20px; height: 32px; width: 312px;">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="NewEmail"
                            runat="server" ErrorMessage="必填项不能为空" CssClass="login_err" /></div>
                </td>
            </tr>
        </table>
        <br />
        <div style="width: 602px; margin-left: auto; margin-right: auto;">
            <div style="text-align: center; width: 333px;">
                <asp:Button Text=" 确 定 " ID="ConfirmBtn" runat="server" OnClick="ConfirmBtn_Click" />
            </div>
        </div>
        <asp:HiddenField ID="H_Email" runat="server" />
    </div>
    <hl:Foot ID="Foot1" runat="server" />
    </form>
    <script type="text/javascript">
        function ShowTips(field) {
            var div_name = "reg_" + field.id;
            document.getElementById(div_name).className = 'reg_tips_onclick';

        }
        function HidenTips(field) {
            var div_name = "reg_" + field.id;
            if (field.value == "") {
                document.getElementById(div_name).className = 'reg_tips_empty';
            }
            else {
                document.getElementById(div_name).className = 'reg_tips_onchange';
            }

        }
        function ShowInPut(field) {
            var div_name = "reg_" + field.id;

            document.getElementById(div_name).className = 'reg_tips_onchange';
        }
        function readagreement() {
            var agreement = document.getElementById("reg_agreement");
            var submit_btn = document.getElementById("RegSubmitButton");
            if (submit_btn.disabled == true) {
                submit_btn.disabled = false;
                agreement.style.display = "";
            }
            else {
                submit_btn.disabled = true;
                agreement.style.display = "none";
            }

        }
        function refreshCode() {
            document.getElementById("ImgCheckCode").innerHTML = "<img alt='验证码' title='验证码' src='CheckCode.aspx?Rnd=" + Math.random() + "'/>";

        }
    </script>
    <script type="text/javascript" language="javascript">
        document.getElementById("RegSubmitButton").disabled = true;
        refreshCode();
    </script>
</body>
</html>
