function Login(btnLogin, key)
{    
    var localKey = key ? key.keyCode : event.keyCode;
    if (localKey == 13)
    {
        if (document.getElementById(btnLogin).dispatchEvent) 
        {
            var e = document.createEvent("MouseEvents"); 
            e.initEvent("click", true, true);
            document.getElementById(btnLogin).dispatchEvent(e); 
        }
        else
            document.getElementById(btnLogin).click();
        return false;
    }
    return true;
}

function LoadSuspendedAccount()
{
    if (!mousePos)
    {
        setTimeout('LoadSuspendedAccount()',50);
        return false;
    }
    var win = WindowSize();
    var divWidth = document.getElementById(divSuspended).style.width.replace(/px/gi, '');
    var divHeight = document.getElementById(divSuspended).style.height.replace(/px/gi, '');
    var x = (1.0 * win.x - 1.0 * divWidth) / 2;
    var y = 280;
    varPopUp = new popUp(x , y , divWidth , divHeight , "divSuspended" , document.getElementById(divSuspended) , "Suspended Account", '', btnClose);
}

function LoadCancelAccount()
{
    if (!mousePos)
    {
        setTimeout('LoadCancelAccount()',50);
        return false;
    }
    var win = WindowSize();
    var divWidth = document.getElementById(divSuspended).style.width.replace(/px/gi, '');
    var divHeight = document.getElementById(divSuspended).style.height.replace(/px/gi, '');
    var x = (1.0 * win.x - 1.0 * divWidth) / 2;
    var y = 280;
    varPopUp = new popUp(x , y , divWidth , divHeight , "divCancel" , document.getElementById(divCancel) , "Canceled Account", '', btnCancelCA);
}
