var timerID = 0;
function ajaxFunction()  {
  var xmlHttp;
  try
    {  // Firefox, Opera 8.0+, Safari  
    xmlHttp=new XMLHttpRequest();  
    }
  catch (e)
    {  // Internet Explorer  
    try {    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");    }
    catch (e)
      {    
      try  {      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");      }
      catch (e)  {      
        return false;       // no ajax support
        }    
      }  
    }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      //getElementById_s(\'pageviews\').innerHTML = \'<b>Peoria.com Page Views Today:</b><br>\'+xmlHttp.responseText;
      }
    }
  //xmlHttp.open("GET","/data/pageviews_today.php",true);
  //xmlHttp.send(null);  

 //if(timerID) {  clearTimeout(timerID);  }
 //timerID = setTimeout("ajaxFunction()", 5000);

}
// getElementById Special to handle quirky browsers
// most will use getElementById()
function getElementById_s(id){
  var obj = null;
  if(document.getElementById){
  /* Prefer the widely supported W3C DOM method, if available:- */
  obj = document.getElementById(id);
  }else if(document.all){   /* Branch to use document.all on document.all only browsers. Requires that IDs are unique to the page and do not coincide with NAME attributes on other elements:- */
  obj = document.all[id];
  }
  /* If no appropriate element retrieval mechanism exists on this browser this function always returns null:- */
  return obj;
  }
