<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html><head><title>User Login</title><meta name='description' content='Realtyzam User Login'><meta name='viewport' content='width=device-width, initial-scale=1'><meta http-equiv='Content-Type' content='text/html; charset=UTF-8'><meta http-equiv='Content-Language' content='en'><meta name='language' content='english'><link rel='shortcut icon' href='https://www.realtyzam.com/Images/Favicons/FavIcon48.png' type='image/x-icon' /><link rel='apple-touch-icon' href='https://www.realtyzam.com/Images/Favicons/FavIcon120.png' sizes='120x120'><link rel='apple-touch-icon' href='https://www.realtyzam.com/Images/Favicons/FavIcon152.png' sizes='152x152'><link rel='apple-touch-icon' href='https://www.realtyzam.com/Images/Favicons/FavIcon180.png' sizes='180x180'><link rel='apple-touch-icon' href='https://www.realtyzam.com/Images/Favicons/FavIcon512.png' sizes='512x512'><link rel='apple-touch-icon' href='https://www.realtyzam.com/Images/Favicons/FavIcon1024.png' sizes='1024x1024'><link rel='shortcut icon' href='https://www.realtyzam.com/Images/Favicons/FavIcon196.png' sizes='196x196'><center><style>.ModalBackground {position:fixed; left:0px; top:0px; width:100%; height:100%; background-image:url(Images/Gray70.png);}.AlertBackground {position:fixed; left:0px; top:0px; width:100%; height:100%; background-image:url(Images/Gray70.png);}.ModalContainer {position:absolute; left:0px; top:0px; width:100%; height:100%; padding-left:0px;}</style><div id='divAlertBg' class='AlertBackground' style='z-index:300000; display:none;'></div><div id='divAlert' class='ModalContainer' style='z-index:300001; display:none;'></div><div id='divProcBg' class='ModalBackground' style='display:none; z-index:200000;'></div><div id='divBg1' class='ModalBackground' style='display:none; z-index:100010;'></div><div id='divModal1' class='ModalContainer' style='display:none; z-index:100011;'></div><div id='divBg2' class='ModalBackground' style='display:none; z-index:100020;'></div><div id='divModal2' class='ModalContainer' style='display:none; z-index:100021;'></div><div id='divBg3' class='ModalBackground' style='display:none; z-index:100030;'></div><div id='divModal3' class='ModalContainer' style='display:none; z-index:100031;'></div><div id='divBg4' class='ModalBackground' style='display:none; z-index:100040;'></div><div id='divModal4' class='ModalContainer' style='display:none; z-index:100041;'></div><div id='divBg5' class='ModalBackground' style='display:none; z-index:100050;'></div><div id='divModal5' class='ModalContainer' style='display:none; z-index:100051;'></div><div id='divBg6' class='ModalBackground' style='display:none; z-index:100060;'></div><div id='divModal6' class='ModalContainer' style='display:none; z-index:100061;'></div><div id='divBg7' class='ModalBackground' style='display:none; z-index:100070;'></div><div id='divModal7' class='ModalContainer' style='display:none; z-index:100071;'></div><div id='divBg8' class='ModalBackground' style='display:none; z-index:100080;'></div><div id='divModal8' class='ModalContainer' style='display:none; z-index:100081;'></div><script>VER = 515597971;</script><script language='javascript' src='VariablesDataArrays.515597971.js'></script><script language='javascript' src='CustomFunctions.515597971.js'></script><script language='javascript' src='QuickAjax.515597971.js'></script><script language='javascript' src='LoadFile.515597971.js'></script><script language='javascript' src='AjaxError.515597971.js'></script><script language='javascript' src='CustomSelectSB.515597971.js'></script><script language='javascript' src='CustomInputs.515597971.js'></script><script language='javascript' src='CreateButton.515597971.js'></script><script language='javascript' src='Loading.515597971.js'></script><script language='javascript' src='OperationWindow.515597971.js'></script><script language='javascript' src='ValidateInputValue.515597971.js'></script><script language='javascript' src='ErrorChecking.515597971.js'></script><script language='javascript' src='CreateStateSelectOptions.515597971.js'></script><script language='javascript' src='FormatPhoneNumber.515597971.js'></script><script language='javascript' src='OnEnterKeyDoThis.515597971.js'></script><script language='javascript' src='Home.515597971.js'></script><script language='javascript' src='ChangePage.515597971.js'></script><script language='javascript' src='ShowTaxDeductionSavings.515597971.js'></script><script language='javascript' src='ContactUs.515597971.js'></script><script language='javascript' src='AffiliateProgram.515597971.js'></script><script language='javascript' src='AffiliateRegistration.515597971.js'></script><script language='javascript' src='SignupShortForm.515597971.js'></script><script language='javascript' src='ShowRedirectMessage.515597971.js'></script><script language='javascript' src='ShowRecentFeedback.515597971.js'></script><script language='javascript' src='LoginFunctions.515597971.js'></script><script language='javascript' src='Captcha.js'></script><link rel='stylesheet' type='text/css' href='CSSTabs.515597971.css' /><link rel='stylesheet' type='text/css' href='CSSInputs.515597971.css' /><link rel='stylesheet' type='text/css' href='CSSLabels.515597971.css' /><link rel='stylesheet' type='text/css' href='CSSModalAqua.515597971.css' /><link rel='stylesheet' type='text/css' href='CSSSpinner.515597971.css' /><link rel='stylesheet' type='text/css' href='CSSLabels.515597971.css' /><link rel='stylesheet' type='text/css' href='CSSCustomSelectSB.515597971.css' /><link rel='stylesheet' type='text/css' href='CSSMainSite.515597971.css' /><script src='jquery-1.12.0.min.js'></script><script>var INCLUDED_FILES_TIMESTAMP = "5/20/2026 8:53:36 PM";
//========================================================================
var LOGIN_INFO = {}



//========================================================================
function ResetLoginVars()
{
LOGIN_INFO = {
    "IsAdmin" : false,
    "UserID" : 0,
    "ReactivateUserID" : 0,
    "UserToken" : "",
    "Cell" : "",
    "MFAToken" : "",
    "MFACnt" : 0,
    "MU" : "",
    "Source" : "Browser",
    "DeviceOS" : navigator.userAgent,
    //"RZDeviceID" : window.localStorage.getItem("NGDeviceID"),
    "LoginToken" : "",
    }
}



//========================================================================
function CreateUserLoginForm(MODAL)
{
var IS_MOBILE = (window.innerWidth <= 767 ? true : false);
//
var USERNAME = gid("txtLID").value;
var REMEMBER_ME = gid("txtRME").value;
var AUTO_LOGIN = gid("txtALI").value;
//
var LOGIN_ERROR = gid("txtError").value;
var LOCKED = gid("txtLocked").value;
var ATTEMPTS = gid("txtAttempts").value;
//
var PROMO_CODE = gid("txtPromoCode").value;
var HTML = "";
var MESSAGE_STYLE = (IS_MOBILE == true ? "width:230px; border-radius:3px;" : "width:397px;") + "; padding:10px 15px 10px 15px; text-align:center; display:inline-block; color:#FFFFFF; font-size:14px;"
var BUTTON_CAPTION = (IS_MOBILE == true ? "<div style='width:80px;'>Login</div>" : "Login");
//
HTML += "<table border=0 cellpadding=0 cellspacing=0 style='padding-bottom:20px;'>";
HTML += "<tr>";
HTML += "<td align=center>"
    HTML += "<div id='divLogin' style='" + (IS_MOBILE == true ? "display:inline-block;" : "padding:35px 80px 35px 80px; width:265px; border:1px solid #D4D4D4; background-color:#F5F5F5;") + "'>"
    HTML += "<table border=0 cellpadding=1 cellspacing=1>";
    HTML += "<tr id='trLogin'>";
    HTML += "<td class='InputLabel' align=left style='font-size:12px;'>Email address</td>"; //Username (your email address)
    HTML += "</tr><tr id='trResetPassword' style='display:none;'>"
    HTML += "<td class='InputLabel' align=left style='font-size:12px;'>Enter your email address</td>"; //Enter your username (email address)
    HTML += "</tr><tr>";
    HTML += "<td align=left>" + CreateTextbox("txtUsername", USERNAME, "width:250|align:left|onchange:RemoveSpaces(this);") + "</td>";
    HTML += "</tr><tr id='trLogin'>";
    HTML += "<td class='InputLabel' align=left style='padding-top:20px;font-size:12px;'>Password</td>";
    HTML += "</tr><tr id='trLogin'>";
    HTML += "<td align=left>"
        HTML += "<table border=0 cellpadding=0 cellspacing=0>";
        HTML += "<tr>"
        HTML += "<td>" + CreateTextbox("txtPassword", "", "width:250|align:left|type:password|onkeyup:OnEnterKeyDoThis(event,'Login()');") + "</td>";
        HTML += "<td style='padding-left:7px;'>"
            HTML += "<img id='imgUserPwd' src='Images/IconEye.png' class='Pointer' style='height:20px; opacity:.15;' onclick=TogglePasswordVisibility('txtPassword','imgUserPwd');>"
        HTML += "</td>";
        HTML += "</tr>";
        HTML += "</table>";
    HTML += "</td>";
    HTML += "</tr><tr id='trLogin'>";
    HTML += "<td align=center style='padding-top:15px;'>"
        HTML += "<table border=0 cellpadding=0 cellspacing=0>";
        HTML += "<tr>";
        HTML += "<td align=left style='padding-top:10px;'>" + CreateCustomCheckbox("Remember me", "chkRememberMe", "Yes", "No", REMEMBER_ME) + "</td>";
        HTML += "</tr><tr>";
        HTML += "<td align=left style='padding-top:10px;'>" + CreateCustomCheckbox("Keep me logged in", "chkKeepMeLoggedIn", "Yes", "No", AUTO_LOGIN) + "</td>";
        HTML += "</tr>";
        HTML += "</table>";
    HTML += "</td>"
    HTML += "</tr><tr id='trLogin'>"
    HTML += "<td align=center style='padding-top:35px;'>" + CreateButton(BUTTON_CAPTION, "DarkGray", "Login();") + "</td>"
    HTML += "</tr><tr id='trResetPassword' style='display:none;'>"
    HTML += "<td align=center style='padding-top:25px;'>"
        HTML += "<table border=0 cellpadding=7 cellspacing=0>";
        HTML += "<tr id='trButtons'>";
        HTML += "<td style='display:none;'>" + CreateButton("OK", "DarkGray", "ShowResetPassword('HIDE');") + "</td>"
        HTML += "<td>" + CreateButton("Cancel", "Gray", "ShowResetPassword('HIDE');") + "</td>"
        HTML += "<td>" + CreateButton("Reset Password", "DarkGray", "ResetPassword();") + "</td>"
        HTML += "</tr>";
        HTML += "</table>";
    HTML += "</td>";
    HTML += "</tr><tr id='trForgotPasswordLink'>";
    HTML += "<td align=center style='padding-top:30px;'><span class='LinkGray' onclick=ShowResetPassword('SHOW');>Reset your password</span></td>"
    HTML += "</tr>";
    HTML += "</table>";
    HTML += "</div>"
HTML += "</td>";
HTML += "</tr>";
HTML += "</table>";
//
HTML += "<input type='hidden' id='txtPromoCode' name='txtPromoCode' value='" + PROMO_CODE + "'>";
//
gid("divLoginForm").innerHTML = HTML;
ResetLoginVars();
//
if (gid("txtRZAutoLoginToken").value.length == 128 && gid("txtRZUserID").value.length >= 5 && IsNumeric(gid("txtRZUserID").value) == true)
    {
    Login("AutoLogin");
    }
}



//===============================================================================
function Login(EXTRA)
{
gid("txtUsername").value = gid("txtUsername").value.replace(/ /g,"").replace(/\t/g,"").replace(/</g,"").replace(/>/g,"")
gid("txtPassword").value = gid("txtPassword").value.replace(/ /g,"").replace(/\t/g,"")
//
var INPUT_USN = gid("txtUsername");
var INPUT_PWD = gid("txtPassword");
//
if (gid("txtRZDeviceID").value == "")
    {
    Alert2("The browser you are using does not have cookies enabled.  You must enable cookies in order to use Realtyzam.",300);
    return;
    }
if (EXTRA != "AutoLogin")
    {
    if (INPUT_USN.value == "")
        {
        HighlightElement(INPUT_USN,"Error");
        Alert2("The USERNAME cannot be blank.");
        return "ERROR";
        }
    if (INPUT_PWD.value == "")
        {
        HighlightElement(INPUT_PWD,"Error");
        Alert2("You must enter your PASSWORD.");
        return "ERROR";
        }
    }
//
var NVP = "";
NVP += "Op=ValidateLogin";
if (EXTRA == "AutoLogin")
    {
    NVP += "&Token=" + EncodeURL(gid("txtRZAutoLoginToken").value);
    NVP += "&UserID=" + EncodeURL(gid("txtRZUserID").value);
    }
else
    {
    NVP += "&U=" + EncodeURL(gid("txtUsername").value);
    NVP += "&P=" + EncodeURL(gid("txtPassword").value);
    NVP += "&RememberMe=" + gid("chkRememberMe").value;
    NVP += "&KeepMeLoggedIn=" + gid("chkKeepMeLoggedIn").value;
    }
NVP += "&RZDeviceID=" + gid("txtRZDeviceID").value;
NVP += "&OS=" + EncodeURL(LOGIN_INFO["DeviceOS"]);
NVP += "&Source=" + LOGIN_INFO["Source"];
//
ShowLoading();
$.ajax({url: "OperationsLogin.asp", data: NVP, dataType: "json", cache: false, async:true, method:"POST", error: AjaxError, success: function(JSON_RESP)
    {
    console.log("JSON_RESP",JSON_RESP);
    //setTimeout(function(){
    //
    if (JSON_RESP["IsAdmin"] != undefined)
        {LOGIN_INFO["IsAdmin"] = JSON_RESP["IsAdmin"]}
    if (JSON_RESP["UserID"] != undefined)
        {LOGIN_INFO["UserID"] = JSON_RESP["UserID"]}
    if (JSON_RESP["ReactivateUserID"] != undefined)
        {LOGIN_INFO["ReactivateUserID"] = JSON_RESP["ReactivateUserID"]}
    if (JSON_RESP["Token"] != undefined)
        {LOGIN_INFO["AutoLoginToken"] = JSON_RESP["AutoLoginToken"]}
    if (JSON_RESP["Cell"] != undefined)
        {LOGIN_INFO["Cell"] = JSON_RESP["Cell"]}
    if (JSON_RESP["UserToken"] != undefined)
        {LOGIN_INFO["UserToken"] = JSON_RESP["UserToken"]}
    if (JSON_RESP["LoginToken"] != undefined)
        {LOGIN_INFO["LoginToken"] = JSON_RESP["LoginToken"]}
    if (JSON_RESP["MU"] != undefined)
        {LOGIN_INFO["MU"] = JSON_RESP["MU"]}
    //
    if (JSON_RESP["Status"] == "Error")
        {
        if (EXTRA == "AutoLogin")
            {
            DeleteCookie("RZAutoLoginToken");
            DeleteCookie("RZUserID");
            //
            gid("txtRZAutoLoginToken").value = "";
            gid("txtRZUserID").value = "";
            //
            setTimeout("HideLoading();",200);
            }
        else
            {
            var HTML = "";
            var MSG_W = (JSON_RESP["ErrorType"] == "MultipleLogins" ? 350 : 280);
            //
            HTML += "<table border=0 cellpadding=0 cellspacing=0 style='padding:30px 50px 25px 50px;'>";
            HTML += "<tr>";
            HTML += "<td align=center class='Font14 Left LH140' style='width:" + MSG_W + "px;'>"
                HTML += JSON_RESP["ErrorMessage"];
            HTML += "</td>"
            HTML += "</tr><tr>";
            HTML += "<td align=center class='PadTop20 PadBot5'>";
                HTML += "<table border=0 cellpadding=7 cellspacing=0>";
                HTML += "<tr>";
                if (JSON_RESP["ErrorType"] == "Abandoned")
                    {HTML += "<td>" + CreateButton("Reactivate Account","Gray","CloseOperationWindow();ReactivateAccount();") + "</td>"}
                else if (JSON_RESP["ErrorType"] == "Locked")
                    {HTML += "<td>" + CreateButton("Reset Password","Gray","CloseOperationWindow();ShowResetPassword();") + "</td>"}
                else
                    {HTML += "<td>" + CreateButton("OK","Gray","CloseOperationWindow();") + "</td>"}
                HTML += "</tr>";
                HTML += "</table>";
            HTML += "</td>";
            HTML += "</tr>";
            HTML += "</table>";
            //
            CreateOperationWindow("Message", HTML, "", "", "center", "center", "", 100, false);
            setTimeout("HideLoading();",200);
            }
        }
    else if (JSON_RESP["Status"] == "PromptMFA")
        {
        ShowMFADeliveryOptions();
        setTimeout("HideLoading();",200);
        }
    else if (JSON_RESP["Status"] == "LoggedIn")
        {
        window.location.href = "MyBusiness.asp";
        }
    //},7000)
    }});
}



//=======================================================================
function ShowResetPassword()
{
var HTML = "";
//
HTML += "<table border=0 cellpadding=0 cellspacing=0 style='padding:30px 0 25px 0;'>";
HTML += "<tr>";
HTML += "<td align=center class='Font14 LH140' style='width:250px;'>"
    HTML += "Make sure your email address is correct."
HTML += "</td>"
HTML += "</tr><tr>";
HTML += "<td align=center class='PadTop10'>"
    HTML += CreateTextbox("txtRPUsername", gid("txtUsername").value.toLowerCase(), "width:230|placeholder:Email|onchange:RemoveSpaces(this);Trim(this);");
HTML += "</td>"
HTML += "</tr><tr>";
HTML += "<td align=center class='PadTop20 PadBot5'>";
    HTML += "<table border=0 cellpadding=7 cellspacing=0>";
    HTML += "<tr>";
    HTML += "<td>" + CreateButton("Reset Password","Gray","ResetPassword();") + "</td>";
    HTML += "</tr>";
    HTML += "</table>";
HTML += "</td>";
HTML += "</tr>";
HTML += "</table>";
//
CreateOperationWindow("Message", HTML, 350, "", "center", "center", "", 100, false);
}



//=================================================================================================================================
function ResetPassword()
{
if (gid("txtRPUsername").value == "")
    {
    Alert2("You must enter your email address.",250);
    return;
    }
//
var NVP = "U=" + EncodeURL(gid("txtRPUsername").value);
//
ShowLoading();
$.ajax({url: "ResetPassword.asp", data: NVP, dataType: "json", cache: false, async:true, method:"POST", error: AjaxError, success: function(JSON_RESP)
    {
    if (JSON_RESP["Status"] == "Success")
        {
        CloseOperationWindow();
        //
        var MESSAGE = "We just sent you an email with your new password. In most cases you should get the email within a few seconds, but it can take up to 5 minutes.";
        Alert2(MESSAGE,300,"Left");
        gid("txtPassword").value = "";
        }
    else
        {
        var MESSAGE = "We do not have a user with the email you entered. Please check the spelling and try again.";
        Alert2(MESSAGE,240,"Left");
        }
    //
    setTimeout("HideLoading();",200);
    }});
}



//===============================================================================
function ResetUsernameError()
{
alert("We encountered an error when trying to reset your password.  Please try again.");
}


//===============================================================================
function RemoveSpaces(OBJ)
{
OBJ.value = OBJ.value.replace(/ /gi,"").replace(/\t/gi,"");
}



//=================================================================================
function ReactivateAccount()
{
var NVP = "";
NVP += "Op=ReactivateAccount";
NVP += "&RUserID=" + LOGIN_INFO["ReactivateUserID"];
//
ShowLoading();
$.ajax({url: "OperationsLogin.asp", data: NVP, dataType: "json", cache: false, async:true, method:"POST", error: AjaxError, success: function(JSON_RESP)
    {
    if (JSON_RESP["Status"] == "Success")
        {
        CloseOperationWindow();
        //
        var MESSAGE = "Your account has been reactivated. You may now login.";
        Alert2(MESSAGE,300,"Left");
        }
    else
        {
        var MESSAGE = "We do not have a user with the email you entered. Please check the spelling and try again.";
        Alert2(MESSAGE,240,"Left");
        }
    //
    setTimeout("HideLoading();",200);
    }});
}



//=======================================================================
function ShowMFADeliveryOptions()
{
var HTML = "";
//
HTML += "<div id='divHowToReceiveMFACode' style='padding:30px 0 25px 0;'>";
HTML += "<table border=0 cellpadding=0 cellspacing=0>";
HTML += "<tr>";
HTML += "<td align=center class='Font14 Color333333 LH140' style='width:350px;'>"
    HTML += "How would you like to receive a verification code?"
HTML += "</td>"
HTML += "</tr><tr>";
HTML += "<td align=center class='PadTop15'>"
    HTML += "<table border=0 cellpadding=0 cellspacing=0>";
    if (LOGIN_INFO["Cell"] != "")
        {
        HTML += "<tr>";
        HTML += "<td valign=top class='PadBot20'>"
            HTML += "<input id='chkMFADeliveryTypeSMS' name='chkMFADeliveryType' type='radio' value='Yes'>"
        HTML += "</td>"
        HTML += "<td valign=top class='PadBot20 Font14 PadLeft10 Pointer NoSelect' onclick=gid('chkMFADeliveryTypeSMS').click()>"
            HTML += "Text to ***-***-**" + LOGIN_INFO["Cell"];
        HTML += "</td>"
        HTML += "</tr>"
        }
    HTML += "<tr>";
    HTML += "<td valign=top>"
        HTML += "<input id='chkMFADeliveryTypeEmail' name='chkMFADeliveryType' type='radio' value='No'>"
    HTML += "</td>"
    HTML += "<td valign=top class='Font14 PadLeft10 Pointer NoSelect' onclick=gid('chkMFADeliveryTypeEmail').click();>"
        HTML += gid("txtUsername").value.toLowerCase();
    HTML += "</td>"
    HTML += "</tr>";
    HTML += "</table>";
HTML += "</td>";
HTML += "</tr><tr>";
HTML += "<td align=center class='PadTop25'>";
    HTML += "<table border=0 cellpadding=7 cellspacing=0>";
    HTML += "<tr>";
    HTML += "<td>" + CreateButton("Send Code","Gray","SendMFACode();") + "</td>";
    HTML += "</tr>";
    HTML += "</table>";
HTML += "</td>";
HTML += "</tr>";
HTML += "</table>";
HTML += "</div>";
//
CreateOperationWindow("Delivery Method", HTML, 400, 150, "center", "center", "", 100, false)
}



//=======================================================================
function SendMFACode()
{
var DELIVERY_TYPE = ""
//
if (gid("chkMFADeliveryTypeSMS") != null && gid("chkMFADeliveryTypeSMS").checked == true)
    {DELIVERY_TYPE = "SMS"}
else if (gid("chkMFADeliveryTypeEmail").checked == true)
    {DELIVERY_TYPE = "Email"}
//
if (DELIVERY_TYPE == "")
    {
    Alert2("You must select how you would like to receive a verification code.",300);
    return;
    }
if (LOGIN_INFO["MFACnt"] >= 10)
    {
    Alert2("You have reached the maximum number of tries. Please try again in 5 minutes.",300);
    return;
    }
//
var NVP = "";
NVP += "Op=SendMFACode";
NVP += "&MFADeliveryType=" + DELIVERY_TYPE;
NVP += "&MFAUserID=" + LOGIN_INFO["UserID"];
NVP += "&UserToken=" + LOGIN_INFO["UserToken"];
//
ShowLoading();
$.ajax({url: "OperationsLogin.asp", data: NVP, dataType: "json", cache: false, async:true, method:"POST", error: AjaxError, success: function(JSON_RESP)
    {
    CloseOperationWindow();
    PromptForMFACode(DELIVERY_TYPE);
    //    
    if (LOGIN_INFO["MFACnt"] > 0)
        {
        var CAPTION = (DELIVERY_TYPE == "SMS" ? "***-***-**" + LOGIN_INFO["Cell"] : gid("txtUsername").value.toLowerCase());
        Alert2("A security code has been sent to " + CAPTION + ".",300)
        }
    //
    LOGIN_INFO["MFACnt"]++;
    //
    setTimeout("HideLoading();",200);
    }});
}



//=======================================================================
function PromptForMFACode(DELIVERY_TYPE)
{
var HTML = "";
var NEW_MODAL = (gid("divEnterMFACode") == null ? true : false);
//
HTML += (NEW_MODAL == true ? "<div id='divEnterMFACode'>" : "");
HTML += "<table border=0 cellpadding=0 cellspacing=0 style='padding:25px 0 25px 0;'>";
HTML += "<tr>";
HTML += "<td align=center class='Font14 Color333333 LH140' style='width:250px;'>"
    HTML += "Enter the security code that was sent to "
    if (DELIVERY_TYPE == "SMS")
        {HTML += "***-***-**" + LOGIN_INFO["Cell"]}
    else
        {HTML += gid("txtUsername").value.toLowerCase()}
HTML += "</td>"
HTML += "</tr><tr>";
HTML += "<td align=center class='PadTop15'>"
    var STYLE = "font-size:18px; font-weight:bold; padding:10px 10px 10px 10px; letter-spacing:3px;"
    HTML += CreateTextbox("txtMFACode", "", "align:center|width:120|maxlength:6|autocomplete:off|onchange:Trim(this);|onkeyup:OnEnterKeyDoThis(event,'ValidateMFACode()');|style:" + STYLE);
HTML += "</td>";
HTML += "</tr><tr>";
HTML += "<td align=center class='PadTop25'>";
    HTML += "<table border=0 cellpadding=7 cellspacing=0>";
    HTML += "<tr>";
    HTML += "<td>" + CreateButton("Request New Code","Gray","ShowMFADeliveryOptions();") + "</td>";
    HTML += "<td>" + CreateButton("Submit","DarkGray","ValidateMFACode();") + "</td>";
    HTML += "</tr>";
    HTML += "</table>";
HTML += "</td>";
HTML += "</tr>";
HTML += "</table>";
HTML += (NEW_MODAL == true ? "</div>" : "");
//
if (NEW_MODAL == true)
    {CreateOperationWindow("Enter Code", HTML, 350, 150, "center", "center", "", 100, false)}
else
    {gid("divEnterMFACode").innerHTML = HTML}
//
gid("txtMFACode").focus();
}



//=======================================================================
function ValidateMFACode()
{
if (ValidateInputValue(gid("txtMFACode"),"CODE","Blank") == false)
    {return;}
if (IsNumeric(gid("txtMFACode").value) == false || gid("txtMFACode").value.length != 6)
    {
    Alert2("The code must be a 6 digit number.",300);
    return;
    }
//
var NVP = "";
NVP += "Op=ValidateMFA";
NVP += "&MFACode=" + EncodeURL(gid("txtMFACode").value);
NVP += "&MFAUserID=" + LOGIN_INFO["UserID"];
NVP += "&MFAToken=" + LOGIN_INFO["MFAToken"];
NVP += "&UserToken=" + LOGIN_INFO["UserToken"];
NVP += "&RZDeviceID=" + gid("txtRZDeviceID").value;
NVP += "&OS=" + EncodeURL(LOGIN_INFO["DeviceOS"]);
NVP += "&Source=" + LOGIN_INFO["Source"];
NVP += "&MU=" + LOGIN_INFO["MU"];
NVP += "&RememberMe=" + gid("chkRememberMe").value;
NVP += "&KeepMeLoggedIn=" + gid("chkKeepMeLoggedIn").value;
//
ShowLoading();
$.ajax({url: "OperationsLogin.asp", data: NVP, dataType: "json", cache: false, async:true, method:"POST", error: AjaxError, success: function(JSON_RESP)
    {
    console.log("JSON",JSON);
    //
    if (JSON_RESP["Status"] == "LoggedIn")
        {
        CloseOperationWindow();
        ShowSaveThisDevice();
        }
    else if (JSON_RESP["Status"] == "BadCode")
        {
        var HTML = "";
        //
        HTML += "<table border=0 cellpadding=0 cellspacing=0 style='padding:30px 0 25px 0;'>";
        HTML += "<tr>";
        HTML += "<td align=center class='Font14 Red LH140' style='width:250px;'>"
            HTML += "The code you entered is not correct. Please try again."
        HTML += "</td>"
        HTML += "</tr><tr>";
        HTML += "<td align=center class='PadTop20 PadBot5'>";
            HTML += "<table border=0 cellpadding=7 cellspacing=0>";
            HTML += "<tr>";
            HTML += "<td>" + CreateButton("OK","Gray","CloseOperationWindow();") + "</td>";
            HTML += "</tr>";
            HTML += "</table>";
        HTML += "</td>";
        HTML += "</tr>";
        HTML += "</table>";
        //
        CreateOperationWindow("Message", HTML, 350, "", "center", "center", "", 100, false);
        gid("txtMFACode").value = "";
        }
    else if (JSON_RESP["Status"] == "Expired")
        {
        var HTML = "";
        //
        HTML += "<table border=0 cellpadding=0 cellspacing=0 style='padding:30px 0 25px 0;'>";
        HTML += "<tr>";
        HTML += "<td align=center class='Font14 Red LH140'>"
            HTML += "The code you entered has expired."
        HTML += "</td>"
        HTML += "</tr><tr>";
        HTML += "<td align=center class='PadTop20 PadBot5'>";
            HTML += "<table border=0 cellpadding=7 cellspacing=0>";
            HTML += "<tr>";
            HTML += "<td>" + CreateButton("Send New Code","Gray","CloseOperationWindow();ShowMFADeliveryOptions();") + "</td>";
            HTML += "</tr>";
            HTML += "</table>";
        HTML += "</td>";
        HTML += "</tr>";
        HTML += "</table>";
        //
        CreateOperationWindow("Message", HTML, 300, "", "center", "center", "", 100, false);
        gid("txtMFACode").value = "";
        }
    //
    setTimeout("HideLoading();",200);
    }});
}



//=======================================================================
function ShowSaveThisDevice()
{
var HTML = "";
//
HTML += "<table border=0 cellpadding=0 cellspacing=0 style='padding:35px 0 25px 0;'>";
HTML += "<tr>";
HTML += "<td align=center class='Font14 LH140' style='width:300px;'>"
    HTML += "<table border=0 cellpadding=0 cellspacing=0>";
    HTML += "<tr>";
    HTML += "<td valign=top>"
        HTML += "<input id='chkRegisterDeviceYes' name='chkRegisterDevice' type='radio' value='Yes'>"
    HTML += "</td>"
    HTML += "<td valign=top class='Font14 LH140 PadLeft10 Pointer NoSelect' style='width:300px;' onclick=gid('chkRegisterDeviceYes').click()>"
        HTML += "<b>I'm on a private device</b>. &nbsp;Please do not prompt me for a security code when logging in from this device/browser combination in the future."
    HTML += "</td>"
    HTML += "</tr><tr>";
    HTML += "<td valign=top class='PadTop20'>"
        HTML += "<input id='chkRegisterDeviceNo' name='chkRegisterDevice' type='radio' value='No'>"
    HTML += "</td>"
    HTML += "<td valign=top class='Font14 LH140 PadLeft10 PadTop20 Pointer NoSelect' style='width:300px;' onclick=gid('chkRegisterDeviceNo').click();>"
        HTML += "<b>I do not own this device</b>. &nbsp;We will prompt you for a security code if you login from this device/browser combination in the future."
    HTML += "</td>"
    HTML += "</tr>";
    HTML += "</table>";
HTML += "</td>"
HTML += "</tr><tr>";
HTML += "<td align=center class='PadTop20'>";
    HTML += "<table border=0 cellpadding=7 cellspacing=0>";
    HTML += "<tr>";
    HTML += "<td>" + CreateButton("Submit","Gray","RegisterDevice();") + "</td>";
    HTML += "</tr>";
    HTML += "</table>";
HTML += "</td>";
HTML += "</tr>";
HTML += "</table>";
//
CreateOperationWindow("Message", HTML, 450, "", "center", "center", "", 100, false);
}



//=======================================================================
function RegisterDevice()
{
if (gid("chkRegisterDeviceYes").checked == false && gid("chkRegisterDeviceNo").checked == false)
    {
    Alert2("You must select an option.",300);
    return;
    }
//
var NVP = "";
NVP += "Op=RegisterDevice";
NVP += "&MFAUserID=" + LOGIN_INFO["UserID"];
NVP += "&UserToken=" + LOGIN_INFO["UserToken"];
NVP += "&RZDeviceID=" + gid("txtRZDeviceID").value;
NVP += "&OS=" + EncodeURL(LOGIN_INFO["DeviceOS"]);
NVP += "&Source=" + LOGIN_INFO["Source"];
NVP += "&RegisterDevice=" + (gid("chkRegisterDeviceYes").checked == true ? "Yes" : "No");
//
ShowLoading();
$.ajax({url: "OperationsLogin.asp", data: NVP, dataType: "json", cache: false, async:true, method:"POST", error: AjaxError, success: function(JSON_RESP)
    {
    console.log("JSON",JSON);
    //setTimeout(function(){
        window.location.href = "MyBusiness.asp";
        //},10000);
    }});
}



//=======================================================================
function TogglePasswordVisibility(INPUT_ID,IMG_ID)
{
if (gid(INPUT_ID).type === "password")
    {
    gid(INPUT_ID).type = "text";
    gid(IMG_ID).src = "Images/IconEyeX.png";
    }
else
    {
    gid(INPUT_ID).type = "password";
    gid(IMG_ID).src = "Images/IconEye.png";
    }
}

//=====================================================================================================
function ToggleAccountWarningMessages()
{
var TOP_TEXT1 = "";
var TOP_TEXT2 = "";
var BANNER1 = "";
var BANNER2 = "";
var HTML = "";
var BOTH = (ACCOUNTING == true && USER_INFO["AccountingDeactivated"] != "Yes" && CRM == true && USER_INFO["CRMDeactivated"] != "Yes" ? true : false);
var ALERTS = [];
var TRIAL_EXPIRED = false;
//
//USER_INFO["TrialDaysLeft"] = -1
//USER_INFO["LimitExceeded"] = "Trans"
//USER_INFO["TrialExpired"] = "Yes"
//USER_INFO["InTrialPeriod"] = "No"
//USER_INFO["WarningRenewal15Day"] = "Yes"
//USER_INFO["SubscriptionEnds"] = "1/30/2017"
//
//USER_INFO["CRMStatus"] = "Inactive"
//USER_INFO["CRMTrialExpired"] = "No"
//USER_INFO["CRMWarningRenewal15Day"] = "Yes"
//
if (ACCOUNTING == true && USER_INFO["AccountingDeactivated"] != "Yes" && USER_INFO["Beta"] != "Yes")
    {
    if (USER_INFO["Status"] != "Active")
        {
        BANNER1 = "Your " + (BOTH == "true" ? " Accounting" : "") + " subscription has ended."
        BANNER1 += " &nbsp;<span class='Underline Pointer' onclick=SelectPage('Billing');>Click here</span> to choose a subscription."
        }
    else if (USER_INFO["InTrialPeriod"] == "Yes")
        {
        if (USER_INFO["TrialExpired"] == "No")
            { 
            console.log("TrialDaysLeft",USER_INFO["TrialDaysLeft"])
            if (USER_INFO["TrialDaysLeft"] >= 7)
                {
                TOP_TEXT1 = "Your" + (BOTH == "true" ? " Accounting" : "") + " free trial ends in " + USER_INFO["TrialDaysLeft"] + Pluralize(USER_INFO["TrialDaysLeft"]," day") + "."
                }
            else if (USER_INFO["TrialDaysLeft"] > 0)
                {
                BANNER1 = "Your" + (BOTH == "true" ? " Accounting" : "") + " free trial ends in " + USER_INFO["TrialDaysLeft"] + Pluralize(USER_INFO["TrialDaysLeft"]," day") + "."
                }
            else
                {
                TOP_TEXT1 = "You can enter " + eval(USER_INFO["ListingsLimit"]-USER_INFO["TrialListings"]) + " more sold properties or " + FormatDollars(eval(USER_INFO["TransLimit"]-USER_INFO["TrialTrans"]),0) + " of income and expenses before your"
                TOP_TEXT1 += (BOTH == "true" ? " Accounting" : "")
                TOP_TEXT1 += " free trial will end."
                }
            }
        else
            {
            if (USER_INFO["LimitExceeded"] == "Trans")
                {
                BANNER1 += "You have reached the maximum income and expenses (" + FormatDollars(USER_INFO["TransLimit"],0) + ") or maximum sold properties (" + USER_INFO["ListingsLimit"] + ") allowed during the" + (BOTH == "true" ? " Accounting" : "") + " free trial."
                }
            else if (USER_INFO["LimitExceeded"] == "Listings")
                {
                BANNER1 = "You have reached the maximum number of sold properties (" + USER_INFO["ListingsLimit"] + ") allowed during the."
                BANNER1 += (BOTH == "true" ? " Accounting" : "");
                BANNER1 += " free trial."
                }
            if (BANNER1 != "")
                {
                BANNER1 += " &nbsp;<span class='Underline Pointer' onclick=SelectPage('Billing');>Click here</span> to choose a paid plan."
                }
            //
            TRIAL_EXPIRED = true;
            }
        //
        gid("tdSubscribeLink").style.display = "";
        }
    else if (USER_INFO["WarningRenewal15Day"] == "Yes")
        {
        var DAYS_LEFT = DateDiff("d",GetDate("Today"),USER_INFO["SubscriptionEnds"]);
        BANNER1 = "Your" + (BOTH == "true" ? " Accounting" : "") + " subscription expires in " + DAYS_LEFT + (DAYS_LEFT == 1 ? " day" : " days") + "."
        BANNER1 += " &nbsp;<span class='Underline Pointer' onclick=" + (BOTH == "true" ? "SelectPage('Billing')" : "ShowPaymentForm('Accounting')") + ";>Click here</span> to renew your subscription."
        }
    }
//console.log("CRM",CRM)
if (CRM == true && USER_INFO["CRMDeactivated"] != "Yes" && USER_INFO["CRMBeta"] != "Yes")
    {
    if (USER_INFO["CRMStatus"] != "Active")
        {
        BANNER2 = "Your" 
        BANNER2 += (BOTH == "true" ? " CRM" : "");
        BANNER2 += " subscription has ended. &nbsp;<span class='Underline Pointer' onclick=SelectPage('Billing');>Click here</span> to renew your subscription or deactivate the CRM module."
        }
    else if (USER_INFO["CRMInTrialPeriod"] == "Yes")
        {
        if (USER_INFO["CRMTrialExpired"] == "No")
            {
            TOP_TEXT2 = "Your"
            TOP_TEXT2 += (BOTH == "true" ? " CRM" : "");
            TOP_TEXT2 += " free trial ends in " + (USER_INFO["CRMTrialDaysLeft"] == 1 ? "1 day" : USER_INFO["CRMTrialDaysLeft"] + " days") + "."
            TOP_TEXT2 += " &nbsp;<span class='Underline Pointer' onclick=SelectPage('Billing');>Click here</span> to subscribe."
            }
        else
            {
            BANNER2 = "Your" + (BOTH == "true" ? " CRM" : "") + " free trial has ended."
            BANNER2 += " &nbsp;<span class='Underline Pointer' onclick=SelectPage('Billing');>Click here</span> to choose a subscription or deactivate the CRM module."
            }
        }
    else if (USER_INFO["CRMWarningRenewal15Day"] == "Yes")
        {
        var DAYS_LEFT = DateDiff("d",GetDate("Today"),USER_INFO["CRMSubscriptionEnds"]);
        BANNER2 = "Your CRM subscription expires in " + DAYS_LEFT + (DAYS_LEFT == 1 ? " day" : " days") + "."
        BANNER2 += " &nbsp;<span class='Underline Pointer' onclick=SelectPage('Billing');>Click here</span> to renew your subscription."
        }
    }
//
console.log("TOP_TEXT1",TOP_TEXT1)
console.log("tdTrialPeriodMessage",gid("tdTrialPeriodMessage"))
if (gid("tdTrialPeriodMessage") !=null)
    {gid("tdTrialPeriodMessage").innerHTML = TOP_TEXT1 + (TOP_TEXT1 != "" && TOP_TEXT2 != "" ? "<div style='height:5px'></div>" : "") + TOP_TEXT2}
//
if (BANNER1 + BANNER2 != "")
    {
    HTML += "<div class='Center' style='background-color:#FD3D3D;'>"
        HTML += "<div class='WarningMessage'>"    
        HTML += BANNER1 + (BANNER2 != "" ? "<div style='height:5px'></div>" : "") + BANNER2
        HTML += "</div>"
    HTML += "</div>"
    }
console.log("HTML",HTML)
gid("tdAccountMessage").innerHTML = HTML;
}



//=====================================================================================================
function CreateHomeOfficeWarning(TOP_PADDING,BOTTOM_PADDING)
{
var HTML = "";
//
if (HOME_OFFICE_MISSING != "")
    {
    var HOE_YEAR = HOME_OFFICE_MISSING;
    HTML += "<div class='PadTop10' id='divHOE" + HOE_YEAR + "Alert'>"
        HTML += "<div class='Bubble' style='padding:9px 15px 8px 15px; border-radius:6px; background-color:#FD9A07; display:inline-block; z-index:auto;'>"
        HTML += "<table border=0 cellspacing=0 cellpadding=0>"
        HTML += "<tr>"
        HTML += "<td align=left class='NoWrap WhiteText Font14'>You have not entered a Home Office expense for " + HOE_YEAR + ".</td>"
        HTML += "<td align=left class='PadLeft15'><div class='BubbleButton' style='font-size:13px; z-index:auto;' onclick=ShowHomeOfficeLearnMore('" + HOE_YEAR + "');>Learn More</div></td>"
        HTML += "<td align=left class='PadLeft15'><div class='BubbleButton' style='font-size:13px; z-index:auto;' onclick=gid('divHOE" + HOE_YEAR + "Alert').style.display='none';UpdateAlerts(undefined,'HOE" + HOE_YEAR + "');>Dismiss</div></td>"
        HTML += "</tr>"
        HTML += "</table>"
        HTML += "</div>"
    HTML += "</div>"
    }
//
return HTML;
}



//=====================================================================================================
function CreateInactiveBankLinkWarning()
{
var HTML = "";
//
//console.log("msg_NewProviderBankLinksCnt",USER_INFO["NewProviderBankLinksCnt"])
console.log("msg_InactiveBankLinksCnt",USER_INFO["InactiveBankLinksCnt"])

//if (USER_INFO["NewProviderBankLinksCnt"] > 0)
//    {
//    HTML += "<div class='PadTop10'></div>"
//    HTML += "<div class='Bubble' style='padding:9px 15px 8px 15px; border-radius:6px; background-color:#FF3333; display:inline-block; z-index:auto;'>"
//    HTML += "<table border=0 cellspacing=0 cellpadding=0>"
//    HTML += "<tr>"
//    HTML += "<td align=left class='NoWrap WhiteText Font14'>One or more of your bank connections are ready to be upgraded.</td>"
//    HTML += "<td align=left class='PadLeft15'><div class='BubbleButtonRed' style='font-size:13px; z-index:auto;' onclick=ShowMyBankLinks();>View Connections</div></td>"
//    HTML += "</tr>"
//    HTML += "</table>"
//    HTML += "</div>"
//    }
//else
if (USER_INFO["InactiveBankLinksCnt"] > 0 || USER_INFO["NotFoundBankLinksCnt"] > 0 || USER_INFO["NotSupportedBankLinksCnt"] > 0 || USER_INFO["ConfirmGapCnt"] > 0)
    {
    HTML += "<div class='PadTop10'></div>"
    HTML += "<div class='Bubble' style='padding:9px 15px 8px 15px; border-radius:6px; background-color:#FF3333; display:inline-block; z-index:auto;'>"
    HTML += "<table border=0 cellspacing=0 cellpadding=0>"
    HTML += "<tr>"
    HTML += "<td align=left class='NoWrap WhiteText Font14'>Our system could not connect to one or more of your bank or credit card accounts.</td>"
    HTML += "<td align=left class='PadLeft15'><div class='BubbleButtonRed' style='font-size:13px; z-index:auto;' onclick=ShowMyBankLinks();>Manage Connections</div></td>"
    HTML += "</tr>"
    HTML += "</table>"
    HTML += "</div>"
    }
//
return HTML;
}



//========================================================================================================================
function CreateContinueImportLinkTransMessage(EXTRA)
{
if (SHOW_DISCARDED == true)
    {var CNT = LINKED_TRANS_CNT;}
else
    {
    var CNT = LINKED_TRANSACTIONS.length;
    LINKED_TRANS_CNT = CNT;
    }
var HTML = ""
//
HTML += "<div class='Bubble' style='padding:9px 15px 8px 15px; border-radius:6px; background-color:#FD9A07; display:inline-block; z-index:auto;'>"
HTML += "<table border=0 cellspacing=0 cellpadding=0>"
HTML += "<tr>"
HTML += "<td align=left class='NoWrap WhiteText Font14'>" + (CNT == 1 ? "1 transaction has" : CNT + " transactions have") + " been downloaded from your bank or credit card that need to be categorized and/or saved.</td>"
HTML += "<td align=left class='PadLeft15'><div class='BubbleButton' style='font-size:13px; z-index:auto;' onclick=ShowLoading();setTimeout(function(){LINKED_TRANS_FILTERS['AcctFilter']=0;ShowLinkedTransactions()},100);>Categorize" + SPAN_SLASH + "Save</div></td>" //SHOW_DISCARDED=false;
HTML += "</tr>"
HTML += "</table>"
HTML += "</div>"
//
if (gid("divUseExistingLinkImportMessage1") != null)
    {gid("divUseExistingLinkImportMessage1").style.display = (CNT > 0 ? "" : "none")}
//
if (EXTRA == "UpdateMessage")
    {gid("divUseExistingLinkImportMessage1").innerHTML = HTML}
//
return HTML;
}



//========================================================================================================================
function CreateContinueImportMessage()
{
var CNT = IMPORTED_TRANSACTIONS.length;
var HTML = ""
//
HTML += "<div class='Bubble' style='padding:9px 15px 8px 15px; border-radius:6px; background-color:#FD9A07; display:inline-block; z-index:auto;'>"
HTML += "<table border=0 cellspacing=0 cellpadding=0>"
HTML += "<tr>"
HTML += "<td align=left class='NoWrap WhiteText Font14'>" + (CNT == 1 ? "1 transaction has" : CNT + " transactions have") + " been manually uploaded that need to be categorized and/or saved.</td>"
HTML += "<td align=left class='PadLeft15'><div class='BubbleButton' style='font-size:13px; z-index:auto;' onclick=ShowLoading();setTimeout(function(){ShowImportedTransactions()},100);>Categorize" + SPAN_SLASH + "Save</div></td>"
HTML += "<td align=left class='PadLeft15'><div class='BubbleButton' style='font-size:13px; z-index:auto;' onclick=ShowDeleteImportedDataWarning();>Delete</div></td>"
HTML += "</tr>"
HTML += "</table>"
HTML += "</div>"
//
for (var I=1; I<=3; I++)
    {
    if (gid("divUseExistingImportMessage" + I) != null)
        {gid("divUseExistingImportMessage" + I).style.display = (CNT > 0 ? "" : "none")}
    }
//
return HTML;   
}



//========================================================================================================================
function UpdateNeedToBeCategorizedMessages()
{
var HTML = ""
//
//-----Linked Transactions---------
if (SHOW_DISCARDED == true)
    {var CNT = LINKED_TRANS_CNT;}
else
    {
    var CNT = LINKED_TRANSACTIONS.length;
    LINKED_TRANS_CNT = CNT;
    }
//
HTML += "<div class='Bubble' style='padding:9px 15px 8px 15px; border-radius:6px; background-color:#FD9A07; display:inline-block; z-index:auto;'>"
HTML += "<table border=0 cellspacing=0 cellpadding=0>"
HTML += "<tr>"
HTML += "<td align=left class='NoWrap WhiteText Font14'>" + (CNT == 1 ? "1 transaction has" : CNT + " transactions have") + " been downloaded from your bank or credit card that need to be categorized and/or saved.</td>"
HTML += "<td align=left class='PadLeft15'><div class='BubbleButton' style='font-size:13px; z-index:auto;' onclick=ShowLoading();setTimeout(function(){LINKED_TRANS_FILTERS['AcctFilter']=0;ShowLinkedTransactions()},100);>Categorize" + SPAN_SLASH + "Save</div></td>" //SHOW_DISCARDED=false;
HTML += "</tr>"
HTML += "</table>"
HTML += "</div>"
//
if (gid("divUseExistingLinkImportMessage1") != null)
    {
    gid("divUseExistingLinkImportMessage1").innerHTML = HTML;
    gid("divUseExistingLinkImportMessage1").style.display = (CNT > 0 ? "" : "none");
    }
//
//-----Imported Transactions---------
var CNT = IMPORTED_TRANSACTIONS.length;
//
HTML += "<div class='Bubble' style='padding:9px 15px 8px 15px; border-radius:6px; background-color:#FD9A07; display:inline-block; z-index:auto;'>"
HTML += "<table border=0 cellspacing=0 cellpadding=0>"
HTML += "<tr>"
HTML += "<td align=left class='NoWrap WhiteText Font14'>" + (CNT == 1 ? "1 transaction has" : CNT + " transactions have") + " been manually uploaded that need to be categorized and/or saved.</td>"
HTML += "<td align=left class='PadLeft15'><div class='BubbleButton' style='font-size:13px; z-index:auto;' onclick=ShowLoading();setTimeout(function(){ShowImportedTransactions()},100);>Categorize" + SPAN_SLASH + "Save</div></td>"
HTML += "<td align=left class='PadLeft15'><div class='BubbleButton' style='font-size:13px; z-index:auto;' onclick=ShowDeleteImportedDataWarning();>Delete</div></td>"
HTML += "</tr>"
HTML += "</table>"
HTML += "</div>"
//
for (var I=1; I<=3; I++)
    {
    if (gid("divUseExistingImportMessage" + I) != null)
        {gid("divUseExistingImportMessage" + I).style.display = (CNT > 0 ? "" : "none")}
    }
//
return HTML;  


}




//=====================================================================================================
function ShowQuickMessage(MESSAGE,EXTRA)
{
var MESSAGES = [];
if (MESSAGE != undefined && MESSAGE != "")
    {MESSAGES.push(MESSAGE)}
else
    {
    if (GROUP_SAVE_CNT > 0)
        {MESSAGES.push(GROUP_SAVE_CNT + Pluralize(GROUP_SAVE_CNT," transaction") + " saved")}
    if (GROUP_DELETE_CNT > 0)
        {MESSAGES.push(GROUP_DELETE_CNT + Pluralize(GROUP_DELETE_CNT," transaction") + " deleted")}   
    }
//
var DIV = gid("divQuickMessage")
DIV.style.display = "none";
DIV.className = "";
DIV.innerHTML = MESSAGES.join("<div class='PadTop5'></div>")
DIV.style.left = parseInt($(window).width()/2) - parseInt($(DIV).outerWidth()/2) + "px";
//
DIV.style.top = "60px";
DIV.style.borderRadius = "10px 10px 10px 10px";
//
DIV.style.display = "";
DIV.offsetWidth = DIV.offsetWidth;
if (EXTRA == "DontHide")
    {DIV.removeEventListener("transitionend",HideQuickMessage2)}
else
    {HideQuickMessage()}
}



//=====================================================================================================
function HideQuickMessage()
{
var DIV = gid("divQuickMessage");
DIV.addEventListener("transitionend",HideQuickMessage2);
DIV.className = "FadeOutMessage ZeroOpacity";
}


//=====================================================================================================
function HideQuickMessage2()
{
//--have to do it this way because we cannot use a nameless function for remove event listenter
gid("divQuickMessage").style.display = "none"
console.log("IT FIRED");
}


//==========================================================================================================================================
function UpdateAlerts(OBJ,ALERT)
{
var NVP = "";
NVP += "UID=" + USER_ID;
NVP += "&OPS=UpdateAlerts";
NVP += "&Alert=" + EncodeURL(ALERT);
//
ShowLoading();
$.ajax
    ({
    url: "Operations.asp", data: NVP, error: AjaxError, dataType: "xml", cache: false, async: true, beforeSend: ShowLoading, success: function(XML_DATA)
        {
        UpdateVariables(XML_DATA);
        if(OBJ != undefined){OBJ.parentNode.parentNode.parentNode.parentNode.parentNode.style.display = "none"}
        //console.log(OBJ.parentNode.parentNode.parentNode.parentNode.parentNode.style.display = "none")
        //OBJ.parentNode.parentNode.removeChild(OBJ.parentNode)
        setTimeout("HideLoading();",DELAY)
        }
    });
}



//==========================================================================================================================================
function Alert2(MESSAGE,WIDTH)
{
var HTML = ""
//
HTML += "<table border=0 cellspacing=0 cellpadding=0 style='padding:30px 50px 30px 50px;'>"
HTML += "<tr>"
//HTML += "<td align=left valign=center class='PadRight20'><img src='Images/CautionGray2.png' style='height:40px; opacity:.8;'></td>"
HTML += "<td " + (isNumeric(WIDTH) ? "width=" + WIDTH : "") + " class='Left Font14 Color333333 LH140'>" + MESSAGE + "</td>"
HTML += "</tr><tr>"
HTML += "<td class='Center PadTop30'>" + CreateButton("OK", "Gray", "CloseOperationWindow();") + "</td>"
HTML += "</tr>"
HTML += "</table>"
//
CreateOperationWindow("Message", HTML, "", 50, "center", "top", "E9E9E9", 75, false);
}



//==========================================================================================================================================
function ShowSubscriptionExpiredMessage(MODULE)
{
var HTML = "";
HTML += "<table border=0 cellpadding=0 cellspacing=0 style='padding:25px 0 25px 0;'>";
HTML += "<tr>";
HTML += "<td align=left class='Color333333 Font14 Nowrap LH140' style='width:350px;'>"
    HTML += "Your Realtyzam <b>" + (MODULE == "Both" ? "Accounting and CRM subscriptions have both ended" : MODULE + " subscription has ended") + "</b>."
    HTML += " &nbsp;Click the <b>Billing/Subscriptions</b> button below to subscribe and/or manage your subscriptions."
HTML += "</td>"
HTML += "</tr><tr>"
HTML += "<td align=center class='PadTop35'>"
    HTML += "<table border=0 cellpadding=7 cellspacing=0>"
    HTML += "<tr>"
    HTML += "<td>" + CreateButton("Cancel", "Gray", "CloseOperationWindow();") + "</td>"
    HTML += "<td>" + CreateButton("Billing/Subscriptions", "DarkGray", "CloseOperationWindow();SelectPage('Billing');") + "</td>"
    HTML += "</tr>"
    HTML += "</table>"
HTML += "</td>"
HTML += "</tr>"
HTML += "</table>"
//
CreateOperationWindow("Message", HTML, 450, 100, "center", "top", "E9E9E9", 50, false);
}



//==========================================================================================================================================
function ShowTrialExpiredMessage(MODULE)
{
var HTML = "";
var BTN_FUNC = "";
var MSG = "";
var BTNS = "";
//
HTML += "<table border=0 cellpadding=0 cellspacing=0 style='padding:25px 0 25px 0;'>";
HTML += "<tr>";
HTML += "<td align=left class='Color333333 Font14 Nowrap LH140' style='width:350px;'>"
    if (MODULE == "Accounting")
        {
        if (ACCOUNTING == true && USER_INFO["AccountingDeactivated"] == "Yes")
            {
            HTML += "We're sorry, but this feature is part of the Realtyzam Accounting module and you have deactivated that module."
            HTML += "&nbsp; Click the button below to re-activate or subscribe to the Accounting module."
            //
            /****NEED TO FIX THIS BUTTON******/
            BTNS += "<td>" + CreateButton("Re-activate Accounting Module", "Gray", "CloseOperationWindow();SelectPage('Billing');") + "</td>"
            /********************************/
            }
        else if (CRM == false || USER_INFO["CRMDeactivated"] == "Yes")
            {
            HTML += "We're sorry, but you have exceeded the limits of your Realtyzam Accounting free trial."
            HTML += "&nbsp; Please select a paid plan to continue."
            //
            BTNS += "<td>" + CreateButton("Paid Plans", "Gray", "CloseOperationWindow();SelectPage('AccountingPaymentForm');") + "</td>"
            }
        else
            {
            HTML += "We're sorry, but this feature is part of the Realtyzam Accounting module and you have exceeded the limits of the Accounting free trial."
            HTML += "&nbsp; Click the button below to subscribe or deactivate the Accounting module."
            //
            /****NEED TO FIX THIS BUTTON******/
            BTNS += "<td>" + CreateButton("Deactivate Accounting Module", "Red", "CloseOperationWindow();SelectPage('AccountingPaymentForm');") + "</td>"
            /********************************/
            BTNS += "<td>" + CreateButton("Paid Plans", "Gray", "CloseOperationWindow();SelectPage('AccountingPaymentForm');") + "</td>"
            }
        }
    else
        {
        if (CRM == true && USER_INFO["CRMDeactivated"] == "Yes")
            {
            HTML += "We're sorry, but this feature is part of the Realtyzam CRM module and you have deactivated that module."
            HTML += "&nbsp; Click the button below to re-activate or subscribe to the CRM module."
            //
            /****NEED TO FIX THIS BUTTON******/
            BTNS += "<td>" + CreateButton("Re-activate Accounting Module", "Gray", "CloseOperationWindow();SelectPage('Billing');") + "</td>"
            /********************************/
            }
        else if (ACCOUNTING == false || USER_INFO["AccountingDeactivated"] == "Yes")
            {
            HTML += "We're sorry, but your Realtyzam CRM free trial has ended."
            HTML += "&nbsp; Click the button below to subscribe."
            //
            /****NEED TO FIX THIS BUTTON******/
            BTNS += "<td>" + CreateButton("Paid Plans", "Gray", "CloseOperationWindow();SelectPage('CRMPaymentForm');") + "</td>"
            /********************************/
            }
        else
            {
            HTML += "We're sorry, but this feature is part of the Realtyzam CRM module and your free trial period has ended."
            HTML += "&nbsp; Click the button below to subscribe or deactivate the CRM module."
            //
            /****NEED TO FIX THIS BUTTON******/
            BTNS += "<td>" + CreateButton("Re-activate Accounting Module", "Gray", "CloseOperationWindow();SelectPage('Billing');") + "</td>"
            /********************************/
            }
        }
HTML += "</td>"
HTML += "</tr><tr>"
HTML += "<td align=center class='PadTop25'>"
    HTML += "<table border=0 cellpadding=7 cellspacing=0>"
    HTML += "<tr>"
    HTML += "<td>" + CreateButton("Paid Plans", "Gray", "CloseOperationWindow();SelectPage('Billing');") + "</td>"
    HTML += "</tr>"
    HTML += "</table>"
HTML += "</td>"
HTML += "</tr>"
HTML += "</table>"
//
CreateOperationWindow("Message", HTML, 450, 100, "center", "top", "E9E9E9", 50, false);
}



//==========================================================================================================================================
function UpdateBankLinkingErrorMessages()
{
if (USER_INFO["InactiveBankLinksCnt"] == 0 && USER_INFO["NotFoundBankLinksCnt"] == 0 && USER_INFO["NotSupportedBankLinksCnt"] == 0 && gid("divInactiveBankLinksWarning") != null)
    {gid("divInactiveBankLinksWarning").style.display = "none";}
}
</script>
<style>
input[type="radio"] {
    box-sizing: border-box;
    width: 16px;
    height: 16px;
    margin: 0px;
    padding: 0;
    border: 1px solid #333333;
    border-radius: 50%;
    appearance: none;
    background-color: transparent;
    outline: none;
    cursor: pointer;
    }
input[type="radio"]:not(:disabled):checked {
    border-color: #333333;
    background-color: #00BBFF;
    background-clip: content-box;
    padding: 3px;
    }
</style>
</head><input type=hidden name=txtLID id=txtLID value='' onmouseover="alert('test');"><input type=hidden name=txtRME id=txtRME value=''><input type=hidden name=txtALI id=txtALI value=''><input type=hidden name=txtLocked id=txtLocked value=''><input type=hidden name=txtAttempts id=txtAttempts value=''><input type=hidden name=txtPromoCode id=txtPromoCode value=''><input type=hidden name=txtError id=txtError value=''><body style='overflow-y:scroll;' onhashchange=UpdatePageOnHashChange(); onclick=if(gid('_More1')!=null){gid('_More1').style.display='none'} ontouchstart=if(gid('_More2')!=null){gid('_More2').style.display='none'}><center><div id='IsMobileSite' style='height:0;'></div><div id='divTabsDesktop' class='TabsDesktop' style='background-color:#29CAFF; position:fixed; top:0px; left:0px; z-index:100; width:100%;'><table border=0 cellpadding=0 cellspacing=0><tr id='trPageTabs'><td width=50></td><td align=left style='width:300px; padding-left:20px;'><div class='Relative' style='width:140px;'><div class='LogoTab' onclick="if(window.location.href.indexOf('#')>-1){window.location.hash='Home'}else{window.location.href='Home.asp#Home'}"><span style='font-family:Futura Light; font-size:32px; color:#000000; cursor:pointer;'>Realty<span class='White'>zam</span></span></div><div class='LogoCover'></div></div></td><td id='tdTabHome' class='TabMain' style='padding-top:20px; padding-bottom:20px;' onclick=this.className='TabMainSelected';window.location.href='Home.asp#Home';>Features</td><td id='tdTabPricing' class='TabMain' style='padding-top:20px; padding-bottom:20px;' onclick=this.className='TabMainSelected';window.location.href='Home.asp#Pricing';>Pricing / Signup</td><td id='tdTabFeedback' class='TabMain' style='padding-top:20px; padding-bottom:20px;' onclick=this.className='TabMainSelected';window.location.href='Home.asp#Feedback';>Reviews</td><td id='tdTabOurStory' class='TabMain' style='padding-top:20px; padding-bottom:20px;' onclick=this.className='TabMainSelected';window.location.href='Home.asp#OurStory';>Our Story</td><td id='tdTabLogin' class='TabMainSelected' style='padding-top:20px; padding-bottom:20px;' onclick=window.location.href='UserLogin';>Login</td><td id='TabMore' class='TabMain' style='padding-top:20px; padding-bottom:20px;' align=left onclick=gid('_More1').style.display=(gid('_More1').style.display==''?'none':'');StopPropogation(event);><div style='position:relative;'><div style='width:49px;'>More</div><div class='Absolute' style='left:38px; top:7px; width:0; height:0; border-style: solid; border-width:7px 5px 0 5px; border-color:#ffffff transparent transparent transparent;z-index:500000;'></div><div id='_More1' class='Shadow' style='position:absolute; top:37px; left:-23px; display:none; z-index:500000; box-shadow:0px 0px 2px #999999;'><table border=0 cellpadding=0 cellspacing=0><tr><td id='tdTabSecurity' class='TabMain' style='padding-top:15px; padding-bottom:15px; border-bottom:0px solid #00BEFE; border-top:0px solid #00BEFE;' onclick=setTimeout(function(){gid('_More1').style.display='none'},200);this.className='TabMainSelected';window.location.href='Home.asp#Security'; nowrap>Security</td></tr><tr><td id='tdTabFAQs' class='TabMain' style='padding-top:15px; padding-bottom:15px; border-bottom:0px solid #00BEFE; border-top:0px solid #00BEFE;' onclick=setTimeout(function(){gid('_More1').style.display='none'},200);this.className='TabMainSelected';window.location.href='Home.asp#FAQs'; nowrap>FAQ's</td></tr><tr><td id='tdTabBlog' class='TabMain' style='padding-top:15px; padding-bottom:15px; border-bottom:0px solid #00BEFE; border-top:0px solid #00BEFE;' onclick=setTimeout(function(){gid('_More1').style.display='none'},200);window.location.href='Blog'; nowrap>Blog</td></tr><tr><td id='tdTabContactUs' class='TabMain' style='padding-top:15px; padding-bottom:15px; border-bottom:0px solid #00BEFE; border-top:0px solid #00BEFE;' onclick=setTimeout(function(){gid('_More1').style.display='none'},200);this.className='TabMainSelected';window.location.href='Home.asp#ContactUs'; nowrap>Contact Us</td></tr><tr><td id='' class='TabMain' style='padding-top:15px; padding-bottom:15px; border-bottom:1px solid #00BEFE;' onclick=setTimeout(function(){gid('_More1').style.display='none'},200);ShowRedirectMessage('RentalHero');StopPropogation(event); nowrap>RentalHero (for Rentals)</td></tr></table></div></div></td><td width=50></td></tr></table></div><div id='divTabsMobile' class='TabsMobile' style='background-color:#29CAFF; position:fixed; top:0px; left:0px; width:100%; z-index:100;'><table border=0 cellpadding=0 cellspacing=0 style='width:100%;'><tr><td align=left valign=center style='width:50px; padding:20px 20px 20px 20px; background-color:#00BFFF;' ontouchstart=gid('_More2').style.display=(gid('_More2').style.display==''?'none':'');StopPropogation(event);><span style='color:#FFFFFF; font-size:18px; line-height:18px; font-family:Futura Light;'>Menu</span><div style='position:relative;'><div id='_More2' style='position:absolute; top:20px; left:-20px; z-index:50000; display:none;'><table id='tblPageTabs' border=0 cellpadding=0 cellspacing=0 style='border-collapse:collapse;'><tr><td id='tdTabHome' class='TabMain' style='border-width:1px 0px 1px 0px; display:block;' ontouchstart=this.className='TabMainSelected';if(gid('_More2').style.display==''){setTimeout(function(){gid('_More2').style.display='none'},100)}else{gid('_More2').style.display=''}this.className='TabMainSelected';window.location.href='Home.asp#Home';>Features</td></tr><tr><td id='tdTabPricing' class='TabMain' style='display:block;' ontouchstart=this.className='TabMainSelected';if(gid('_More2').style.display==''){setTimeout(function(){gid('_More2').style.display='none'},100)}else{gid('_More2').style.display=''}this.className='TabMainSelected';window.location.href='Home.asp#Pricing';StopPropogation(event);>Pricing</td></tr><tr><td id='tdTabSignup' class='TabMain' style='display:block;' ontouchstart=this.className='TabMainSelected';if(gid('_More2').style.display==''){setTimeout(function(){gid('_More2').style.display='none'},100)}else{gid('_More2').style.display=''}this.className='TabMainSelected';window.location.href='Home.asp#Signup';StopPropogation(event);>Signup</td></tr><tr><td id='tdTabSignup' class='TabMain' style='display:block;' ontouchstart=this.className='TabMainSelected';if(gid('_More2').style.display==''){setTimeout(function(){gid('_More2').style.display='none'},100)}else{gid('_More2').style.display=''}this.className='TabMainSelected';window.location.href='Home.asp#Feedback';StopPropogation(event);>Reviews</td></tr><tr><td id='tdTabOurStory' class='TabMain' style='display:block;' ontouchstart=this.className='TabMainSelected';if(gid('_More2').style.display==''){setTimeout(function(){gid('_More2').style.display='none'},100)}else{gid('_More2').style.display=''}this.className='TabMainSelected';window.location.href='Home.asp#OurStory';StopPropogation(event);>Our Story</td></tr><tr><td id='tdTabSecurity' class='TabMain' style='display:block;' ontouchstart=this.className='TabMainSelected';if(gid('_More2').style.display==''){setTimeout(function(){gid('_More2').style.display='none'},100)}else{gid('_More2').style.display=''}this.className='TabMainSelected';window.location.href='Home.asp#Security';StopPropogation(event);>Security</td></tr><tr><td id='tdTabFAQs' class='TabMain' style='display:block;' ontouchstart=this.className='TabMainSelected';if(gid('_More2').style.display==''){setTimeout(function(){gid('_More2').style.display='none'},100)}else{gid('_More2').style.display=''}this.className='TabMainSelected';window.location.href='Home.asp#FAQs';StopPropogation(event);>FAQs</td></tr><tr><td id='tdTabBlog' class='TabMain' style='display:block;' ontouchstart=this.className='TabMainSelected';if(gid('_More2').style.display==''){setTimeout(function(){gid('_More2').style.display='none'},300)}else{gid('_More2').style.display=''}window.location.href='Blog';StopPropogation(event);>Blog</td></tr><tr><td id='tdTabLogin' class='TabMain' style='display:block;' ontouchstart=this.className='TabMainSelected';if(gid('_More2').style.display==''){setTimeout(function(){gid('_More2').style.display='none'},300)}else{gid('_More2').style.display=''}window.location.href='UserLogin.asp';StopPropogation(event);>Login</td></tr><tr><td id='tdTabContactUs' class='TabMain' style='display:block;' ontouchstart=this.className='TabMainSelected';if(gid('_More2').style.display==''){setTimeout(function(){gid('_More2').style.display='none'},100)}else{gid('_More2').style.display=''}this.className='TabMainSelected';window.location.href='Home.asp#ContactUs';StopPropogation(event);>Contact Us</td></tr><tr><td id='tdTabRealtyzamCRM' class='TabMain' style='display:block;' ontouchstart=ShowRedirectMessage('RentalHero');>RentalHero (for rentals)</td></tr></table></div></div></td><td align=right style='padding:20px 25px 15px 20px;'><div class='Relative InlineBlock' style='width:125px;'><span style='font-family:Futura Light; font-size:28px; color:#000000; line-height:0px;' ontouchend=window.location.href='Home.asp#Home'; >Realty<span style='color:#FFFFFF;'>zam</span><div class='LogoCover'></div></div></td></tr></table></div><div id='' class='FadeIn PadBot60 PadTop30'><div class='InlineBlock DesktopWidth1060 MobileWidth85Pct'><div class='InlineBlock'><section class='TextLeft UserLoginText'><h2 class='Title1 Block DesktopWidth350' style='text-align:center;'>User Login</h2><p class='Text1' style='text-align:center; padding-bottom:20px;'><img src='Images/IconBuyerGray.png' style='height:50px;' border=0></p></section><form class='ImgRight MobileSpacer20' name='frmLogin' id='frmLogin' method='post' action='MyBusiness.asp'><div class='PadTop10' id='divLoginForm'></div><input type=hidden id=txtTempRememberMe value=''><input type=hidden id=txtTempAutoLogin value=''><input type=hidden id=txtTempLoginID value=''><input type=hidden id=txtRZDeviceID value='MbvmZxSj9aKutRZ8S69jvMyVq9CxrPsDykCjcBjQ42BPUm4mZmxChjhDnTnfem3rBUEJgqU8X7UZ4ZVk5YaqTFNnyhrmcEvJjHhD7aQFefm3P3NBxFGGbacDj8rRe358'><input type=hidden id=txtRZAutoLoginToken value=''><input type=hidden id=txtRZUserID value=''></form></div></div></div><div class='DividerLine MobileHidden'></div><div class='MobileHidden' style='padding-top:50px;'></div><div id='divFooterDesktop'><div class='FooterBody'><span class='FooterLink' onclick=window.location.href='Blog';>Blog</span><span class='FooterLinkSpacer'></span><span class='FooterLink' onclick=window.location.href='Home.asp#Security';>Security</span><span class='FooterLinkSpacer'></span><span class='FooterLink' onclick=window.location.href='Home.asp#ContactUs';>Contact Us</span><span class='FooterLinkSpacer'></span><span class='FooterLink' onclick=window.location.href='Home.asp#AffiliateProgram';>Referral Program</span><span class='FooterLinkSpacer'></span><span class='FooterLink' onclick=window.location.href='Home.asp#GroupPricing';>Group Pricing</span><span class='FooterLinkSpacer'></span><span class='FooterLink' onclick=window.location='PrivacyPolicy.asp';>Privacy Policy</span><span class='FooterLinkSpacer'></span><span class='FooterLink' onclick=window.location='TermsOfService.asp';>Terms of Service</span><span class='FooterLinkSpacer'></span><span class='FooterLink' onclick=window.location='Credits.asp';>Credits</span><div class='FooterAddress'>&copy; Realtyzam, LLC. &nbsp;All rights reserved.<br>11426 Davis Street #1100, Grand Blanc, MI 48480</div></div></div></body></html>


<script>
//========================================================
Ajax.load("VisitorTracking.asp?Page=Login", 'xml', 'get');
//
CreateUserLoginForm();
//
var IMG = new Image();
IMG.src = "Images/BackgroundTextured.png";
//


</script>
