function log_hit() {
  var counterURL = null;
  var request = null;

//alert('started');
  // *** START Stats ***
  var argString, i, n = 0;
  for(i in navigator) {
    argString += i + '=' + eval('navigator.'+i) + '&';
  }
  argString += "screenRes=" + ((screen.width)?screen.width+"x"+screen.height:null) + "&colorDepth=" + ((screen.colorDepth)?screen.colorDepth:null);
  counterURL = '/stats/hit_details.php?' + argString;
  // window.location = counterURL;
  // *** END Stats ***

//alert('built');
  try { // Firefox, Opera 8.0+, Safari
    request = new XMLHttpRequest();
  } catch(e) {
    try { // Internet Explorer 6.0+
      request = new ActiveXObject("Msxml2.XMLHTTP");
    } catch(e) {
      try { // Internet Explorer 5.5+
        request = new ActiveXObject("Microsoft.XMLHTTP");
      } catch(e) {
        // alert("Your browser does not support AJAX!");
        document.getElementById("count_rev").innerHTML = "<img src=\"" + counterURL + "\" id=\"counter\" width=\"1\" height=\"1\" alt=\"logging...\" />";
        return false;
      }
    }
  }
//alert('ajaxed');
  if(request != null) {
    request.onreadystatechange = function() {
      if(request.readyState == 4 && /^(200|304)$/.test(request.status.toString())) {
        // responseDiv.innerHTML = request.responseText;
//         alert('test: ' + request.responseText);
      }
    }
    request.open('GET', counterURL, true);
    request.send(null);
  }
//alert('ended');
  return false;
}