// JavaScript Document
function trim( instr ) {
    	var reFirst = /\S/;		// regular expression for first non-white char
    	var reLast = /\s+$/;	// regular expression for first white char after last non-white char
    	var firstChar = instr.search(reFirst);
    	var lastChar = instr.search(reLast);
    	
    	if( lastChar == -1 ) 
			lastChar = instr.length;    	
    	outstr = instr.substring( firstChar, lastChar );
		return outstr;

}

function loadCounter()
 {		
		var sURL    = "counter.asp";
		var CounterText = ""
		var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		xmlhttp.Open("GET", sURL, false);
		xmlhttp.Send();
		if(xmlhttp.statusText == 'OK'){	
			CounterText  =xmlhttp.responseText;
		}else{	
			CounterText  =1000;
		}
		document.getElementById('HitCnt').innerText = CounterText;
}



