function jsxmlhttp()
{ 
}

jsxmlhttp.prototype.loadXMLDoc = function(url)
{
// code for Mozilla, etc.
	if (window.XMLHttpRequest)
 	{
  		this.xmlhttp=new XMLHttpRequest();
  		this.xmlhttp.onreadystatechange=this.xmlhttpChange;
  		this.xmlhttp.open("GET",url,true);
  		this.xmlhttp.send(null);
  	}
	// code for IE
	else if (window.ActiveXObject)
  	{
  		this.xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
   		if (this.xmlhttp)
    	{
    		this.xmlhttp.onreadystatechange=this.xmlhttpChange;
    		this.xmlhttp.open("GET",url,true);
    		this.xmlhttp.send();
    	}
  	}
	
}

jsxmlhttp.prototype.loadXMLDocInput = function(url, input)
{
// code for Mozilla, etc.
	if (window.XMLHttpRequest)
 	{
  		this.xmlhttp=new XMLHttpRequest();
		this.xmlhttp.onreadystatechange=this.xmlhttpChange;
		this.xmlhttp.open("POST",url,true);
		this.xmlhttp.send(input);
	}
	// code for IE
	else if (window.ActiveXObject)
  	{
  		this.xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    	if (this.xmlhttp)
    	{
    		this.xmlhttp.onreadystatechange=this.xmlhttpChange;
    		this.xmlhttp.open("POST",url,true);
    		this.xmlhttp.send(input);
    	}
  	}
	
}


jsxmlhttp.prototype.loadXMLDocWait = function(url)
{
// code for Mozilla, etc.
	if (window.XMLHttpRequest)
 	{
  		this.xmlhttp=new XMLHttpRequest();
  		this.xmlhttp.onreadystatechange=this.xmlhttpChange;
  		this.xmlhttp.open("GET",url,false);
  		this.xmlhttp.send(null);
  	}
	// code for IE
	else if (window.ActiveXObject)
  	{
  		this.xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
   		if (this.xmlhttp)
    	{
    		this.xmlhttp.onreadystatechange=this.xmlhttpChange;
    		this.xmlhttp.open("GET",url,false);
    		this.xmlhttp.send();
    	}
  	}
	
}

jsxmlhttp.prototype.loadXMLDocInputWait = function(url, input)
{
// code for Mozilla, etc.
	if (window.XMLHttpRequest)
 	{
  		this.xmlhttp=new XMLHttpRequest();
		this.xmlhttp.onreadystatechange=this.xmlhttpChange;
		this.xmlhttp.open("POST",url,false);
		this.xmlhttp.send(input);
	}
	// code for IE
	else if (window.ActiveXObject)
  	{
  		this.xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    	if (this.xmlhttp)
    	{
    		this.xmlhttp.onreadystatechange=this.xmlhttpChange;
    		this.xmlhttp.open("POST",url,false);
    		this.xmlhttp.send(input);
    	}
  	}
	
}

jsxmlhttp.prototype.xmlhttpChange = function()
{
	// if xmlhttp shows "loaded"
	if(this.xmlhttp)
	{
		if (this.xmlhttp.readyState==4)
		{
			// if "OK"
			if (this.xmlhttp.status==200)
			{
				return this.xmlhttp.responseText;
			}
			else
			{
				return true;
			//	alert("Problem retrieving XML data");
			}
		}
		else
			return false;
	}
}

jsxmlhttp.prototype.xmlhttpGet = function()
{
	// if xmlhttp shows "loaded"
	if(this.xmlhttp)
	{		
		return this.xmlhttp.responseText;
	}
	else
	{
		return false;
	}
}
