<!-- 

// Get the HTTP Object 
function getHTTPObject(){ 
   if (window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP"); 
   	else if (window.XMLHttpRequest) return new XMLHttpRequest(); 
    	 	else { 
       				alert("Your browser does not support AJAX."); 
       				return null; 
    			 }	 
}    
   
// Change the value of the outputText field 
function setOutput(){ 
    if(httpObject.readyState == 4){ 
        document.getElementById('hit_counter').innerHTML = httpObject.responseText; 
    } 
  
} 
   
// Implement business logic     
function doWork(){     
    httpObject = getHTTPObject(); 
    if (httpObject != null) {
    	var sPath = window.location.pathname;
		var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
        httpObject.open("GET", "/adoption/public/tracker/track?url="+sPath, true); 
        httpObject.send(null);  
        httpObject.onreadystatechange = setOutput; 
    } 
} 
   
var httpObject = null; 

-->
