﻿function o_Verify() {
    var sUserID = o_Trim($("#" + GetClientId( "sUserID" )).val());

    $("#" + GetClientId( "sUserID")).val(sUserID);

    var sLabel = $("#" + GetClientId( "lblUserID") ).text();

    if (sUserID == "") {
        alert(sLabel + " is mandatory.");
        $("#" + GetClientId( "sUserID") ).focus();
        return false;
    }
    if (pageType == "1") {
        if (CheckChar(sUserID, sLabel) == true) {
            $("#" + GetClientId( "sUserID")).focus();
            return false;
        }

        if (CheckEMail(sUserID) == true) {
            alert(sLabel + " is not in correct format.");
            $("#" + GetClientId( "sUserID")).focus();
            return false;
        }
    }

    return true;
}

function o_Password_Load() {
    $("#" + GetClientId( "sUserID")).focus();
}

document.onkeypress = o_DisableEnterKey;

$(document).ready(o_Password_Load);
