if (!Remote) var Remote = new Object(); if (!MB) var MB = new Object(); Remote.remoteServerURL = ""; Remote.serverName = "www.matchbook.com"; Remote.serverPort = "80"; Remote.remoteURL = Remote.remoteServerURL + "/rpc"; Remote.hindsightServerURL = Remote.remoteServerURL + "/hindsight"; use_safeTC = false; COMPONENT_DEBUGGING_ON = true; ASYNCH_SEND_TIMEOUT = '20000'; ASYNCH_RESPONSE_TIMEOUT = '25000'; ASYNCH_RESPONSE_HANDLING_ON = 'true'; ASYNCH_BETTING_TIMEOUT = '25000'; ASYNCH_LOADING_TIMEOUT = '20000'; MB.DEBUG = true ; MB.ALLOW_CONTROL_PANEL = true; MB.POLLING_RATE_LOW = 20000; MB.POLLING_RATE_MEDIUM = 13000; MB.POLLING_RATE_HIGH = 7000; MB.POLL_TIMEOUT = 30000; MB.POLLING = true; MB.SUBMIT_TIMEOUT = 1; MB.SUBMIT_LIMIT = 10; MB.RETREATING_LIMIT = 1000; MB.RECORDS_PER_PAGE = 50; MB.TEAM_RECORDS_PER_PAGE = 1000; MB.ALERT_BAD_ODDS = false; MB.ALERT_BAD_STAKE = false; MB.LOGIN_MISSING_PASSWORD = 'Please enter your password.'; MB.LOGIN_MISSING_USERNAME = 'Please enter your username.'; MB.LOGIN_INVALID_MSG = 'Username or password incorrect. Please try again.'; MB.UNKNOWN_ERROR = 'An unknown error has occurred on the server.'; MB.ERROR_UI_COMMUNICATION = 'Communication with the server has been lost.'; MB.LOADING_MESSG = 'Loading error. Please refresh.'; MB.ERROR_SESSION_EXPIRED = 'Your login session has expired. Please log in again.'; MB.ERROR_LOGIN_REQUIRED = 'Please log in to continue.'; MB.LOGIN_REQUIRED = MB.ERROR_LOGIN_REQUIRED; MB_BETTING_REQUEST_ERROR_MESSAGE = 'Order queue conflict. Please review your order and try again if necessary.'; MB_BETTING_UNKNOWN_ERROR_MESSAGE = 'Order queue conflict. Please review your request and try again if necessary.'; MB.ERROR_INVALID_STAKE = 'Stake must be between $[0] and $[1].'; MB.ERROR_INVALID_ODDS_EU = 'European odds must be between [0] and [1].'; MB.ERROR_INVALID_ODDS_PC = 'Value must be between [0] and [1].'; MB.ERROR_INVALID_ODDS_US = 'Odds must be between [0] and [1] or -[0] and -[1].'; MB.ERROR_INVALID_VIG = 'Vigorish percentage values must be between [0] and [1].'; MB.MESSAGE_ROUNDED_ODDS = 'Your odds have been rounded from [0] to [1].'; MB.MESSAGE_NO_ACTIVE_MARKETS = 'There are no active markets in this category.'; MB.MESSAGE_NO_ACTIVE_RUNNERS = 'There are no active runners in this market.'; MB.MESSAGE_SUSPENDED = 'Market Suspended'; MB.MESSAGE_CLOSED = 'Closed'; MB.MESSAGE_SUBMIT_LIMIT = 'First {0} bet requests processed. Press submit again to process remaining bet requests.'; MB.DETAILS_SUCCESSFULLY_CHANGED = 'Your details have been successfully changed.'; MB.PREFERENCE_NOT_SET = 'Unable to set the preference to your choice.'; MB.MESSAGE_DEFAULT_SITE_PREFS_SET = 'Your preferences are set to default values. You can see these settings once you press OK.'; MB.MESSAGE_DEFAULT_SITE_PEFS_ERROR ='There was an error setting the default site preferences.'; MB.MESSAGE_LOG_OFF = 'To register your username you must first be logged off. Please log out.'; MB.MESSAGE_REQUEST_PROCESSING = 'Your request is being processed. Please do not resubmit any data.'; MB.MESSAGE_USERNAME_MIN_CHARACTERS ='Username must be at least six characters.'; MB.MESSAGE_USERNAME_MAX_CHARACTERS ='Username cannot exceed 12 characters.'; MB.MESSAGE_INVALID_WHITE_CHARCTERS ='Special characters or blank spaces are not allowed.'; MB.ERROR_ADDRESS_ENTRY_REGIONLIST = 'Failure while retreiving regions for the selected country'; MB.ERROR_ADDRESS_ENTRY_COUNTRYLIST ='Error in retrieving country list'; MB.MESSAGE_INVALID_ZIPCODE = 'Please enter a valid zip code.'; MB.ERROR_EMAIL_ID_CHECK = 'Please enter a valid e-mail.'; MB.REQUEST_PROCESSING = ''; MB.CARD_DELETION_SUCCESS = ''; MB.REFERRAL_SOURCES = ''; MB.MAX_STAKE_VALUE = 50000.0; MB.BOTTOM_RANGE_OF_YEAR = 2003; MB.DATE_RANGE_MONTH_LIMIT = 6; MB.LIVE_CHAT_MESSAGE = 'live chat (via our Contact Us page)'; MB.NETELLER_WITHDRAWAL_CONTENT = ''; MB.CLOCK_UPDATE_INTERVAL = '900000'; MB.REPORT_UNMATCHED_CANCEL_ERROR = 'Offer already matched or partially matched.'; MB.SYSTEM_RECON_REPORT_TIME = '05:00:00'; MB.GRADING_AND_PAYOUT_URL = '/rpc/matchbook.com/operation/business/admin/payoutmanager/PayoutManagerMachine/rpc/matchbook.com/operation/business/admin/payoutmanager/PayoutReversalMachine/rpc/matchbook.com/operation/business/team/GetTeamLeadReconcileDetailsMachine/rpc/matchbook.com/operation/business/admin/team/TeamManagerMachine/rpc/matchbook.com/operation/business/admin/utm/UserIPTrackingMachine'; ASYNCH_REQUEST_PRIORITY_DEFAULT = 90; REMOTE_NULL_RESPONSE_RETRIES_ON = false; REMOTE_MAX_NULL_RESPONSE_RETRIES = 0; FC = new Object(); FC.HDR_REQUEST_ID_NAME = 'x-ajax-reqid'; FC.HDR_USER_TOKEN_NAME = 'mb-user-token'; FC.HDR_EXTRA_CMD_NAME = 'extra-cmd' FC.LOADING_MESSAGE = "L o a d i n g . . ."; FC.WAITING_MESSAGE = "Please wait..."; FC.WAIT_STATE_TIMEOUT = 30000; //ms FC.getUserToken = function() { try { return MBFrame.getProcessorFrameStep().MB.LOGIN_TOKEN; } catch(e) { return null; } } FC.setUserToken = function(token) { try { MBFrame.getProcessorFrameStep().MB.LOGIN_TOKEN = token; } catch(e) {} } FC.callAudit = function(machine, bit) { try { MB.rrauditRequest(machine, bit); } catch(e) {} } FC.logRequest = function(url, xmlStr, qLen) { try { MB.logRequest(url, xmlStr, qLen); } catch(e) {} } FC.logResponse = function(url, xmlStr, qLen) { try { MB.logResponse(url, xmlStr, qLen); } catch(e) {} } FC.log = function(msg) { try { MB.log(msg); } catch(e) {} } FC.logToServer = function(msg, data, json, ex) { try { MB.logToServer(msg, data, json, ex); } catch(e) {} } FC.logError = function(id, msg) { try { MB.logError(id, msg); } catch(e) {} } FC.displayError = function(id, msg) { try { MB.logError(id,msg); } catch(e) {} } FC.applicationInvalid = function() { try { MB.reloadApplication(); } catch(e) {} } FC.handleResponseFirst = function(xml, extra, json) { try { if (!json && 'login' == extra && XML.getText(xml,"status") == "success") { var token = FC.getUserToken(); if (token == null) { token = XML.getText(XML.selectOne(xml,"response"),"login-token"); FC.setUserToken(token); } } } catch(e) {} } FC.isFireNextReqEarlyMachine = function(machine) { return (machine && (machine.indexOf("CategoryDetailView") > -1 || machine.indexOf("EventDetailView") > -1)); } FC.extraStateXML = function() { try { return MB.extraStateXML(); } catch(e) {} return null; }