			var timeoutHandle;
			var mainXMLHttpObj;
			var AppPath="";
			function DoCallback(url, params){
			// url:    URL to invoke
			// params: string object to pass to the remote URL
			// Add some parameters to the query string
				var pageUrl = url + "?callback=true&param=" + params;				
				var oXmlHttp=GetXmlHttp();
				try {
				//alert(pageUrl);
				oXmlHttp.open("GET", pageUrl, false);
				mainXMLHttpObj = oXmlHttp;
				oXmlHttp.onreadystatechange = managestatechange;
				
					oXmlHttp.send(null);
				}
				catch (e) {
				//alert(e);
					DoError(oXmlHttp, "Please try again.");					
				}				
			}
			
			function ShowRegions(){
				//To avoid the server (Web service) call if the option is invalid
				if (document.PageForm.UC_QuickSearch_DDL_Regions.value.toLowerCase() == "none")
				{
					//document.getElementById("Regions").innerHTML = "";
					return;
				}
				var HTML = "<div class='loadingCities'><font color='#005AA1' >Populating pick-up location, please wait.</font></div>";				
				document.getElementById("Regions").innerHTML = HTML;
				document.body.style.cursor='wait';
				setTimeout(doXMLCall,100);
			}
			
			function doXMLCallSingle() {
				//Get the value of the selected item
				
				/*var RegionID =  document.PageForm.DDL_HARegion.value;
				
				//Get data from the server
				var pageUrl = AppPath + "/Cars/HA/Regions.aspx" + "?callback=true&param=" + RegionID;

				var oXmlHttp=GetXmlHttp();			
				try {
				// Post our XmlRequest and get our desired string
				oXmlHttp.open("POST", pageUrl, true);
								
				// Define an event handler for processing
				mainXMLHttpObj = oXmlHttp;
				oXmlHttp.onreadystatechange = managestatechange;
				
					oXmlHttp.send(null);								
				}
				catch (e) {
					DoError(oXmlHttp, "Please try again.");					
				}		*/
				DoCallback("/Cars/HA/Regions.aspx", RegionID);
			}
			
			function doXMLCall() {
				//Get the value of the selected item				
				var RegionID =  document.PageForm.DDL_HARegion.value;								
				//Get data from the server
				DoCallback("/Cars/HA/Regions.aspx", RegionID);
			}
			
			function managestatechange() {
			//alert(mainXMLHttpObj);
				switch (mainXMLHttpObj.readyState) {
				case 4:
						
						if (mainXMLHttpObj.status==200)
						{							
							//Place data in a string
							var Result = mainXMLHttpObj.responseText;							
							if (document.getElementById("Regions") != null)
								document.getElementById("Regions").innerHTML = Result;
							document.body.style.cursor='auto';
							clearTimeout(timeoutHandle);
						}
					else
						{
							DoError(null, "Sorry there was a problem. Please try again.");
						}						
						return false;
						//break;
					
				}	
			}
			
			function DoError(xmlRequest, Message){
				if (xmlRequest != null)
					xmlRequest.abort();
				if (document.getElementById("Regions") != null)
					document.getElementById("Regions").innerHTML = Message;
				if (document.PageForm.DDL_HARegion != null)
					document.PageForm.DDL_HARegion.selectedIndex=0;
				//document.PageForm.DDL_HARegion.focus();
				document.body.style.cursor='auto';					
			}
			
			function TimeOut() {
				DoError("<div class='NotFound'>Sorry, the regions could not be loaded. Please try again.</div>")
				xmlRequest.abort();				
			}

			//Create and return XmlHttp object
	function GetXmlHttp()
	{
		var oXmlHttp=false;
		try 
		{
			//Mozilla Browsers
			oXmlHttp = new XMLHttpRequest();
		} 
		catch (e) 
		{
			try 
			{
				//IE 6.0 AND ABOVE
				oXmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); 
			}
			catch (e) 
			{
				try {
					//IE 5.0 OR BELOW
					oXmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
					}
				catch (e) 
				{
					//Something else that won't work with this code...
					oXmlHttp=false;
				}
			}
		} 
		return oXmlHttp;
	}	