function ajaxRequest(action,ptr)
{
  var http;
  var browser = navigator.appName;
  if (window.XMLHttpRequest) { http = new XMLHttpRequest(); }
  else if (window.ActiveXObject) { http = new ActiveXObject("Microsoft.XMLHTTP"); }

  http.open('get',action);
  http.onreadystatechange = function() { if(http.readyState == 4) { ptr(http.responseText); } }
  http.send(null);
}