function ajax(url, callbackFunction) 
{	
	// Provide the XMLHttpRequest class for IE 5.x-6.x:
	if( typeof XMLHttpRequest == "undefined" ) XMLHttpRequest = function() {
	  try { return new ActiveXObject("Msxml2.XMLHTTP.6.0") } catch(e) {}
	  try { return new ActiveXObject("Msxml2.XMLHTTP.3.0") } catch(e) {}
	  try { return new ActiveXObject("Msxml2.XMLHTTP") } catch(e) {}
	  try { return new ActiveXObject("Microsoft.XMLHTTP") } catch(e) {}
	  throw new Error( "This browser does not support XMLHttpRequest." )
	};

  var request =  new XMLHttpRequest();
  request.open("GET", url, true);
  //request.setRequestHeader("Content-Type",
   //                        "application/x-www-form-urlencoded");
 
  request.onreadystatechange = function() {
    var done = 4, ok = 200;
    if (request.readyState == done && request.status == ok) 
    {    	
    	callbackFunction(request.responseText);
    }
  };
  request.send(null);
}

