var xmlhttp;

function checkReadyState(obj)
{
  if(obj.readyState == 4)
  {
    if(obj.status == 200)
    {
      return true;
    }
    else
    {
//      alert("Problem retrieving XML data");
	  return true;
    }
  }
}

function initObj() {
	xmlhttp = null;
	if (window.XMLHttpRequest)
	  {
	  xmlhttp=new XMLHttpRequest();
	  }
	// code for IE
	else if (window.ActiveXObject)
	  {
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	if (xmlhttp!=null)
	  {
		;
	  }
	else
	  {
	  alert("Your browser does not support XMLHTTP.");
	  }
}



function getXMLNode(x,i) {
	if (!i) i = 0;
	if (BrowserDetect.browser == "Firefox") {
		return x[i].textContent;
	} else {
		return x[i].firstChild.data;
	}

}


