function XmlHttpRequest()
{
	this.xmlHttp = null;	//this will store the xml request for the entire process
	this.GetHtmlRequest = XmlHttpRequest_GetHtmlRequest;
	this.SendRequest = XmlHttpRequest_SendRequest;
	
	//get the Html Request depending on the browser
	function XmlHttpRequest_GetHtmlRequest()
	{
		// code for Mozilla, etc.
		if (window.XMLHttpRequest)
		{
			this.xmlHttp = new XMLHttpRequest();
		}
		// code for IE
		else if (window.ActiveXObject)
		{
			this.xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//return this.xmlHttp;
	}
	
	//send the request to the url we've passed
	function XmlHttpRequest_SendRequest( url )
	{
		this.xmlHttp.open("GET",url,true);
		this.xmlHttp.send(null);
		
		return this.xmlHttp;
	}
}
