var searchtrack_GlobalID = 0; var searchtrack_Timer = 0.0; var searchtrack_TimeIncrement = 10000; var searchtrack_currentpage = document.URL; var searchtrack_referrerpage = document.referrer; var searchtrack_home_url = "http://66.98.250.32/~searc353/SearchTrack/Goldencasket/"; //function searchtrack_createNewUser() { // loadXMLDoc("GET", searchtrack_home_url + "Goldencasket.php?ref=" + searchtrack_repAmp(searchtrack_referrerpage) + "&pg=" + searchtrack_repAmp(searchtrack_currentpage), true); // } function searchtrack_createNewUser() { var i=new Image(1,1); i.src= searchtrack_home_url + "Goldencasket.php?ref=" + searchtrack_repAmp(searchtrack_referrerpage) + "&pg=" + searchtrack_repAmp(searchtrack_currentpage); } function searchtrack_repAmp(entry) { return repAmp1(repAmp2(entry)); } function repAmp1(entry) { out = "&"; // replace this add = "%3F"; // with this temp = "" + entry; // temporary holder while (temp.indexOf(out)>-1) { pos= temp.indexOf(out); temp = "" + (temp.substring(0, pos) + add + temp.substring((pos + out.length), temp.length)); } return temp; } function repAmp2(entry) { out = "?"; // replace this add = "%3F"; // with this temp = "" + entry; // temporary holder while (temp.indexOf(out)>-1) { pos= temp.indexOf(out); temp = "" + (temp.substring(0, pos) + add + temp.substring((pos + out.length), temp.length)); } return temp; } function processReqChange() { // only if req shows "loaded" if (req.readyState == 4) { // only if "OK" if (req.status == 200) { // ...processing statements go here... } else { alert("There was a problem retrieving the XML data:\n" + req.statusText); } } } var req; function loadXMLDoc(method, url, asynch) { req = false; // branch for native XMLHttpRequest object if(window.XMLHttpRequest && !(window.ActiveXObject)) { try { req = new XMLHttpRequest(); } catch(e) { req = false; } // branch for IE/Windows ActiveX version } else if(window.ActiveXObject) { try { req = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { req = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) { req = false; } } } if(req) { req.onreadystatechange = processReqChange; req.open(method, url, asynch); req.send(""); } } searchtrack_createNewUser();