var http = false;

if(navigator.appName == "Microsoft Internet Explorer") {
  http = new ActiveXObject("Microsoft.XMLHTTP");
} else {
  http = new XMLHttpRequest();
} 

function ajax(url,div) {
  	http.open("GET", url, true);
  	http.onreadystatechange=function() {
    	if(http.readyState == 4) {
    	  	document.getElementById(div).innerHTML = http.responseText;
   	 	}
  	}
  http.send(null);
}