var xmlHttpA = false;

try {
  xmlHttpA = new ActiveXObject("Msxml2.XMLHTTP");
 
} catch (e) {
  try {
    xmlHttpA = new ActiveXObject("Microsoft.XMLHTTP");
    
  } catch (e2) {
	xmlHttpA = false;

  }
}

if (!xmlHttpA && typeof XMLHttpRequest != 'undefined') {
  xmlHttpA = new XMLHttpRequest();
}

function updatePageA() {
  if (xmlHttpA.readyState == 4) {
    var response = xmlHttpA.responseText;
    document.getElementById("myhits").innerHTML = response;
	
  }
}

function hits() {
	
  	var url = "hits.php";

  	// Open a connection to the server
  	xmlHttpA.open('GET', url, true);

  	// Setup a function for the server to run when it's done
  	xmlHttpA.onreadystatechange = updatePageA;
	
  	// Send the request
  	xmlHttpA.send(null);
}

