function getHTTPObject() {
  var xmlhttp;
  /*@cc_on
  @if (@_jscript_version >= 5)
    try {
      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
        xmlhttp = false;
      }
    }
  @else
  xmlhttp = false;
  @end @*/
  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
    try {
      xmlhttp = new XMLHttpRequest();
    } catch (e) {
      xmlhttp = false;
    }
  }
  return xmlhttp;
}


function loadXMLDoc(url){
	xmlhttp=null
	// code for Mozilla, etc.
	if (window.XMLHttpRequest)	{
		xmlhttp=new XMLHttpRequest()
	}
	// code for IE
	else if (window.ActiveXObject)	{
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
	}//if
	
	if (xmlhttp!=null){
		xmlhttp.onreadystatechange=state_Change
		xmlhttp.open("GET",url,true)
		xmlhttp.send(null)
		return xmlhttp.responseText
	} else	{
		alert("Your browser does not support XMLHTTP.")
	}//if
}//end

function state_Change(){
	// if xmlhttp shows "loaded"
	if (xmlhttp.readyState==4)	{
	// if "OK"
		if (xmlhttp.status==200){
			// ...some code here...
		} else	{
			alert("Problem retrieving XML data")
		}//if
	}//if
}//end