var xmlHttp

function showVehicle(str)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="select_vehicle_pulldown.php"
url=url+"?car_years="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("txtHint3").innerHTML=xmlHttp.responseText 
 } 
}




function custshowVehicle(str)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="select_account_pulldown.php"
url=url+"?cust_car_years="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=custstateChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function custstateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("txtCUST3").innerHTML=xmlHttp.responseText 
 } 
}




function garageshowVehicle(str)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="select_garage_pulldown.php"
url=url+"?cust_car_years="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=custstateChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function custstateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("txtGARAGE3").innerHTML=xmlHttp.responseText 
 } 
}



function showMake(str)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="select_vehicle_pulldown.php"
url=url+"?pass_make="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=modelChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function modelChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("txtHint4").innerHTML=xmlHttp.responseText 
 } 
}





function custshowMake(str)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="select_account_pulldown.php"
url=url+"?cust_pass_make="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=custmodelChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function custmodelChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("txtCUST4").innerHTML=xmlHttp.responseText 
 } 
}



function garageshowMake(str)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="select_garage_pulldown.php"
url=url+"?cust_pass_make="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=custmodelChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function custmodelChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("txtGARAGE4").innerHTML=xmlHttp.responseText 
 } 
}




function getModel(str)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="select_vehicle_pulldown.php"
url=url+"?pass_model="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=vehicleChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function vehicleChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("txtHint5").innerHTML=xmlHttp.responseText 
 } 
}



function custgetModel(str)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="select_account_pulldown.php"
url=url+"?cust_pass_model="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=custvehicleChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function custvehicleChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("txtCUST5").innerHTML=xmlHttp.responseText 
 } 
}




function garagegetModel(str)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="select_garage_pulldown.php"
url=url+"?cust_pass_model="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=custvehicleChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function custvehicleChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("txtGARAGE5").innerHTML=xmlHttp.responseText 
 } 
}




function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}
