function createWTLogEntry(newURL)
{ 
    var xhr; 
    try {  xhr = new ActiveXObject('Msxml2.XMLHTTP');   }
    catch (e) 
    {
        try {   xhr = new ActiveXObject('Microsoft.XMLHTTP');    }
        catch (e2) 
        {
          try {  xhr = new XMLHttpRequest();     }
          catch (e3) {  xhr = false;   }
        }
     }
  
    xhr.onreadystatechange  = function()
    { 
         if(xhr.readyState  == 4)
         {
              /*
              if(xhr.status  == 200) 
                  alert(xhr.responseText);
                  //document.ajax.dyn="Received:"  + xhr.responseText; 
              else 
                 alert(xhr.status);
                 //document.ajax.dyn="Error code " + xhr.status;
              */
         }
    }; 

   xhr.open('GET', newURL,  true); 
   xhr.send(null); 
}

function detectURLChange() {

  var newURLAnchor = location.hash.substring(1,location.hash.lastIndexOf('/'));
  
  // alert("Current: "+ curURLAnchor);

  if (curURLAnchor != newURLAnchor) { 
    curURLAnchor = location.hash.substring(1,location.hash.lastIndexOf('/'));
   	// frames['wt_tracker'].location.href='?' + curURLAnchor + '/' + location.hash;
   	// alert("Current: "+ curURLAnchor);
   	// alert("Hash: "+ location.hash);
   	// -- createWTLogEntry('?' + curURLAnchor + '/' + location.hash);
   	createWTLogEntry('?' + curURLAnchor);
   	// alert("URL changed!");
   	// alert("New: "+ newURLAnchor);
  }

  else {
 	  // alert("URL has NOT changed!");
  }

}