function ajax(url, destination) {
	var xmlhttp;
	if (window.XMLHttpRequest) {
 		 xmlhttp=new XMLHttpRequest();
		 xmlhttp.onreadystatechange=stateChange(destination);
		 xmlhttp.open("GET",url,true);
		 xmlhttp.send(null);
	 } else {
		 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		 xmlhttp.onreadystatechange=stateChange(destination);
		 xmlhttp.open("GET",url,true);
		 xmlhttp.send();
	 }
	 
	function stateChange(destination) {
		if (xmlhttp.readyState==4) {
 			if (xmlhttp.status==200) {
			 	document.getElementById(destination).innerHTML=xmlhttp.responseText;
 			} else {
 				alert("There was a problem in the returned data");
 			}
 		}
	}
}


