function ajaxLoadCarsFunction(locid){
	var ajaxRequest;  // The variable that makes Ajax possible!
	try{
		// Opera 8.0+, Firefox, Safari
		ajaxRequest = new XMLHttpRequest();
	}
	catch (e){
		// Internet Explorer Browsers
		try{
			ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e){
			try{
				ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e){
				// Something went wrong
				alert("This function requires the use of Javascript. Please enable Javascript from the Tools menu of your web browser. We apologize for any inconvenience.");
				return false;
			}
		}
	}

	ajaxRequest.onreadystatechange = function(){
		if(ajaxRequest.readyState == 4  && ajaxRequest.status == 200){
			document.getElementById('midcolcar').innerHTML = ajaxRequest.responseText;
		}

		if(ajaxRequest.readyState!=4){
			document.getElementById("midcolcar").innerHTML= '<img style="position:relative; top:150px; left:250px;" alt="loading information" title="loading information" src="http://obelisk/webroot/mike-car-hire/images/rotation.gif" /><font style="position:relative; top:180px; left:150px; color:#666666; font-family: Arial, Verdana, Lucidia Grande; font-size: 11px;">Loading your list of cars...please wait.</font>';
		}
	}
	var cid = document.getElementById('country_cars').value;
	var rid = document.getElementById('region_cars').value;
	var pickupdate = document.getElementById('pickupmonth').value + "/" + document.getElementById('pickupday').value + '/' + document.getElementById('pickupyear').value + " 08:00:00 AM";
  var dropoffdate = document.getElementById('dropoffmonth').value + "/" + document.getElementById('dropoffday').value + '/' + document.getElementById('dropoffyear').value + " 08:00:00 AM";

	var queryString = "?country_cars=" + cid + "&region_cars=" + rid + "&pdate=" + pickupdate + "&ddate=" + dropoffdate + "&locid=" + locid + "&do=1&rannum=" + Math.random();
  //alert(queryString);
  ajaxRequest.open("GET", "http://www.ucch.org/includes/car-list.php" + queryString, true);
	ajaxRequest.send(null);
}

