function changeLocation()
{
	var loc = document.getElementById("location").value;
	window.location='showroom.php?param=' + loc;
}

var urlVehicle = "includes/getVehicleInfo.php?param="; // The server-side script
function handleHttpResponseVehicle() {
  if (http.readyState == 4) {
	document.getElementById('vehicleInfo').innerHTML = http.responseText;
  }
}
function loadVehicle(inventory_id) {
  var typeValue = inventory_id;
  http.open("GET", urlVehicle + escape(typeValue), true);
  http.onreadystatechange = handleHttpResponseVehicle;
  http.send(null);
}

function getHTTPObject() {
  var xmlhttp;
  /*@cc_on
  @if (@_jscript_version >= 5)
    try {
      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
        xmlhttp = false;
      }
    }
  @else
  xmlhttp = false;
  @end @*/
  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
    try {
      xmlhttp = new XMLHttpRequest();
    } catch (e) {
      xmlhttp = false;
    }
  }
  return xmlhttp;
}
var http = getHTTPObject(); // We create the HTTP Object