/*

Simple hit counter
created: 03/01/2001
author: Michael Bartha

version: 1.0

updates
=======================================
date		author				description
03/01/2001	Michael Bartha		created version 1.0
03/30/2001	Michael Bartha		added function to strip out querystring

*/
var pageHitCounterURL = "/asp/global/pageHitCounter.asp";

function gatherStatistics() {
	var strTemp = "";
	var strURL = document.URL;
	var strBaseURL = strURL.substring(0,strURL.indexOf("?"));
	if (strBaseURL.length == 0) strBaseURL = strURL;
	strTemp += "?pageid=" + escape(document.URL) + "&refererpage=" + escape(document.referrer);
	return strTemp;
}
document.writeln('<img id="counter" src="' + pageHitCounterURL + gatherStatistics() + '" border="0" width="0" height="0">');