﻿///// Agent Name and ARC number check /////
function EnsureAgency() {
    if (typeof isAgencyFound != "undefined") {
        if (isAgencyFound == "1") {
            return true;
        }
        else {
            var msg;
            if (typeof RestoolClientSideErrorMessage != 'undefined') {
                msg = RestoolClientSideErrorMessage.ValidAgency;
            }
            if (typeof MultistopRestoolClientSideErrorMessage != 'undefined') {
                msg = MultistopRestoolClientSideErrorMessage.ValidAgency;
            }
            alert(msg);
            return false;
        }
    }
    return true;
}
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();