//This file contains the definition of the AJAX Request object

function AJAXRequest( url )
{
	var sendFunc;
	var URL = url;
	var xmlHttp;
	
	try
  	{  // Firefox, Opera 8.0+, Safari  
	    xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{   
		// Internet Explorer  
	   try
	   {    
		   xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");    
	   }
	   catch (e)
	   {
		   try
		   {      
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");      
		   }
		   catch (e)
		   {      
				alert("Your browser does not support AJAX! Unable to retrieve locations");      
				return false;      
		   }   
	   }  
	 }
		
    xmlHttp.onreadystatechange = function()
	{
		//If we received a response
		if ( xmlHttp.readyState == 4 )
		{
            //If the response was OK
			if (xmlHttp.status == 200)
			{
				try
				{
					eval(xmlHttp.responseText);	
					DisplaySearchResults();
				}
				catch(error)
				{
					alert( error );
				}
			}
		}
	}
	
	this.send = function()
	{
		
		xmlHttp.open("GET", URL, true);
		//xmlHttp.setRequestHeader("Content-Length", 1);
		xmlHttp.send(null)
	}
}