var counter = 0;
function GetReadingCount()
{ alert
var xmlhttp;
if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else if (window.ActiveXObject)
  {
  // code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
else
  {
  alert("Oops, sorry your browser is not able to do this");
  }
xmlhttp.onreadystatechange=function()
{
if(xmlhttp.readyState==4)
  {
  	 document.getElementById("liveCounter").innerHTML=xmlhttp.responseText;
  	 counter++;
	 if(counter<30) {
		 t=setTimeout('GetReadingCount()',2000);
	 } else {
	 	history.go(0);
	 }//counter
  }//state 4
}//fn

var url="stats/ReadingCounter.php?show=1";
url=url+"&sid="+Math.random();
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}