// If mode - quiet then no chat image is made available (tracking only) var Mode = 'Normal'; // Used to store the handle of the chat window var ChatWindow=null; // Used to store the remote ID of the user var RemoteID=0; // The link to the window to open when the op image is pressed var WindowToOpen="http://www.easynettalk.com/Message.php"; // Store all the variable to pass to the tracker var StatString="AppName=Default Browser&AppVersion=0&Platform=unknown&Language=en-us,en;q=0.5&Page="+escape(document.URL); StatString+="&Width="+screen.width+"&Height="+screen.height+"&PageTitle="+escape(document.title); var VisitorUpdateString="Referrer="+escape(document.referrer)+"&ConfigID=1&InstID=gfdf-gfdgf-gfdgd-dfgfdg&"+StatString+"&Signature=38.107.191.116-38.107.191.116"; // Opens the Chat client in a new window or the Message window if offline function LaunchChat() { if (ChatWindow==null || ChatWindow.closed ) { //ChatWindow=window.open( WindowToOpen+"?InstID=gfdf-gfdgf-gfdgd-dfgfdg&ConfigID=1&RemoteID="+RemoteID,"_blank","width=496, height=630,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0, resizable=0"); ChatWindow=window.open( WindowToOpen+"?InstID=gfdf-gfdgf-gfdgd-dfgfdg&ConfigID=1&RemoteID="+RemoteID,"_blank","width=489, height=478,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0, resizable=0"); } } if (Mode!="NoChat") { document.write(''); document.write('\"Click'); document.write(''); } // --------------------------------------------------------------- // Call Visitor Update script (Using silly attach script hack) // By attaching the script we force its contents to be executed. // In this instance the contents IS the PHP page we wish to call. // This page also returns a script that sets the value of the // RemoteID variable // ------------------------------------------------------------ UpdateVisitor(); // ----------------------------------------------------------- // Calls the update server script to populate the database // with remote connection information. The function also // attaches a new script which sets the value of the // RemoteID variable. // ----------------------------------------------------------- function UpdateVisitor() { var script=document.getElementById('script_ENT_UTILITY'); if (script) { script.parentNode.removeChild(script); } script=document.createElement('SCRIPT'); script.id='script_ENT_UTILITY'; script.src='http://www.easynettalk.com/VisitorUpdate.php?'+VisitorUpdateString; var head=document.getElementsByTagName('HEAD')[0]; head.appendChild(script); } // ------------------------------------------------------------------ // Refresh the script on the base page so that it gets executed again // ------------------------------------------------------------------ function PingServer() { var script=document.getElementById('script_ENT_UTILITY'); if (script) { script.parentNode.removeChild(script); } script=document.createElement('SCRIPT'); script.id='script_ENT_UTILITY'; script.src='http://www.easynettalk.com/PingServer.php?RemoteID='+RemoteID+'&ConfigID=1&InstID=gfdf-gfdgf-gfdgd-dfgfdg&time=1283530681'; var head=document.getElementsByTagName('HEAD')[0]; head.appendChild(script); } setTimeout( "PingServer()", 30000);