/* Javascript code for Live Web Stats. Our Live Website Statistics and Tracker service is a free and efficient way to add a powerful web traffic analysis tool to your website www.tele-pro.co.uk */ //set image width to 0 for an invisible tag var imgWidth = 25; //if you host the script you can define your member id here: //var mID='100'; //store unique id var ckName = "livestats"; var ckID = getCookie (ckName); if (ckID==null) { //generate unique id var expdate = new Date(); expdate.setTime (expdate.getTime() + (20*60*1000)); ckID = (expdate.getTime() ); ckID = 'a' + ckID; ckID = ckID.substring(1,11); //store unique id in cookie setCookie (ckName, ckID, expdate); } //construct image query var s= 'h='+escape(location.href) + '&r='+escape(document.referrer); s= s+ '&ckID=' + ckID; s= s+ '&mID=' + mID; s= s+ '&cc=' + getCookie ('ccode'); //write image tag document.write (''); document.write (' Free Live Web Statistics at www.tele-pro.co.uk '); document.write (''); function delayed() { document.images('livestats').src='http://www.click-support.com/stats/hit.asp?'+s; } setTimeout('delayed()', 1200); //functions function getCookie (name) { var dcookie = document.cookie; var cname = name + "="; var clen = dcookie.length; var cbegin = 0; while (cbegin < clen) { var vbegin = cbegin + cname.length; if (dcookie.substring(cbegin, vbegin) == cname) { var vend = dcookie.indexOf (";", vbegin); if (vend == -1) vend = clen; return unescape(dcookie.substring(vbegin, vend)); } cbegin = dcookie.indexOf(" ", cbegin) + 1; if (cbegin == 0) break; } return null; } function setCookie (name, value, expires) { if (!expires) expires = new Date(); document.cookie=name+"="+escape (value)+"; expires="+expires.toGMTString()+"; path=/"; }