var xmlData;

function ajaxsg(strurl)  /* ajax, synchronous, get */
{
  /* Sycronic call */
  if(window.ActiveXObject)  { xml1 = new ActiveXObject("MSXML2.xmlhttp") } /* IE */
  else if(window.XMLHttpRequest) { xml1 = new XMLHttpRequest() }   /* Mozilla Firefox */

  xml1.open("GET", strurl , false);

  if(window.XMLHttpRequest) { xml1.send(null); } /* Mozilla Firefox */
  else if(window.ActiveXObject)  { xml1.send(); } /* IE */

  return xml1.responseText;
}


function ajaxag(strurl, callbackref) /* ajax, asynchronous, get */
{

  /************************************************************************************/
  /* Asyncronic call, gets the data */
  if(window.ActiveXObject)  { xmlData = new ActiveXObject("MSXML2.xmlhttp") } /* IE */
  else if(window.XMLHttpRequest) { xmlData = new XMLHttpRequest() }   /* Mozilla Firefox */

  xmlData.onreadystatechange=callbackref
  xmlData.open("GET", strurl , true);

  if(window.XMLHttpRequest) { xmlData.send(null); } /* Mozilla Firefox */
  else if(window.ActiveXObject)  { xmlData.send(); } /* IE */

  /************************************************************************************/

}

//Everything should be changed to use this
function ajaxagb(strurl, callbackref) /* ajax, asynchronous, get, returns reference to the HTTPreq object */
{

  /************************************************************************************/
  /* Asyncronic call, gets the data */

  var oHTTPReq;

  if(window.ActiveXObject)  { oHTTPReq = new ActiveXObject("MSXML2.xmlhttp") } /* IE */
  else if(window.XMLHttpRequest) { oHTTPReq = new XMLHttpRequest() }   /* Mozilla Firefox */

  oHTTPReq.onreadystatechange=callbackref
  oHTTPReq.open("GET", strurl , true);

  if(window.XMLHttpRequest) { oHTTPReq.send(null); } /* Mozilla Firefox */
  else if(window.ActiveXObject)  { oHTTPReq.send(); } /* IE */

  /************************************************************************************/

  return oHTTPReq;

}

