function getHTTPObject() { var xmlhttp; /*@cc_on @if (@_jscript_version >= 5) try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { xmlhttp = false; } } @else xmlhttp = false; @end @*/ if (!xmlhttp && typeof XMLHttpRequest != 'undefined') { try { xmlhttp = new XMLHttpRequest(); } catch (e) { xmlhttp = false; } } return xmlhttp; } function sendGetRequest(XMLDoc) { syslog('info', XMLDoc + " ... sendRequest"); startThrobber(); var http = getHTTPObject(); http.open("GET", XMLDoc + "//" + Math.round(Math.random() * 10000) + '?&SID=e7f9580a87c5b4b32fe7f68a9bac262f', true); http.onreadystatechange = function() { if (http.readyState == 4) { stopThrobber(); if (http.status == 200) { new xmlManager(http, XMLDoc); } else { syslog('error', XMLDoc + " Status: " + http.status + " - " + http.statusText ); } } } http.send(null); } function postReplace( value ) { while( value.search(/&/) >= 0 ) { value = value.replace(/&/, "###amp###"); } while( value.search(/\+/) >= 0 ) { value = value.replace(/\+/, "###plus###"); } return value; }