/* *********************************************** Referrer Code - Functions *********************************************** */ function QueryString( param ) { var begin,end; if(self.location.search.length>1) { begin=self.location.search.indexOf(param) +param.length+1; end=self.location.search.indexOf("&",begin); if(end==(-1)) end=self.location.search.length; return(self.location.search.substring(begin,end)); } else if(self.location.hash.length>1) { begin=self.location.hash.indexOf(param) +param.length+1; end=self.location.hash.indexOf("&",begin); if(end==(-1)) end=self.location.hash.length; return(self.location.hash.substring(begin,end)); } else return(""); } function returnreferrer() { var myreferrer = ""; myreferrer = QueryString('referrer'); if (myreferrer != ""){ // A referrer has been passed on the querystring return myreferrer; }else{ // No referrer on querystring so send back nothing return(""); } } /* *********************************************** Referrer Code - Code Entry Point *********************************************** */ ref=escape(document.referrer); if(ref == ""){ ref = returnreferrer(); } NS2Ch=0 if (navigator.appName == "Netscape" && navigator.appVersion.charAt(0) == "2"){ NS2Ch=1; } if (NS2Ch == 0){ info="&shreference="+shref+"&pagename="+pagename+"&size="+s+"&colors="+c+"&referrer="+ref+"&java="+j; document.writeln(""); }