var xmlhttp_Make
var xmlhttp_Model
var xmlhttp_Syear
var xmlhttp_Eyear
function showMake(){ if (window.XMLHttpRequest) { xmlhttp_make = new XMLHttpRequest(); if (xmlhttp_make.overrideMimeType) { xmlhttp_make.overrideMimeType('text/xml');}
}
else if (window.ActiveXObject) { try { xmlhttp_make = new ActiveXObject("Msxml2.xmlHttp_Make");}
catch (e){ try { xmlhttp_make = new ActiveXObject("Microsoft.xmlHttp_Make");}
catch (e) {}
}
}
if (!xmlhttp_make) { alert('Giving up :( Cannot create an xmlHttp_Make instance'); return false;}
var category = document.getElementById('category').options[document.getElementById('category').selectedIndex].text; var url="selmake.php"; url=url+"?category="+category; url=url+"&sid="+Math.random(); xmlhttp_make.onreadystatechange=stateChanged_Make; xmlhttp_make.open("GET",url,true); xmlhttp_make.send(null); function stateChanged_Make(){ if (xmlhttp_make.readyState==4){ document.getElementById("SelMake").innerHTML=xmlhttp_make.responseText;}
}
}
function showModel(){ if (window.XMLHttpRequest) { xmlhttp_model = new XMLHttpRequest(); if (xmlhttp_model.overrideMimeType) { xmlhttp_model.overrideMimeType('text/xml');}
}
else if (window.ActiveXObject) { try { xmlhttp_model = new ActiveXObject("Msxml2.xmlHttp_Model");}
catch (e){ try { xmlhttp_model = new ActiveXObject("Microsoft.xmlHttp_Model");}
catch (e) {}
}
}
if (!xmlhttp_model) { alert('Giving up :( Cannot create an xmlHttp_Make instance'); return false;}
var category = document.getElementById('category').options[document.getElementById('category').selectedIndex].text; var make = document.getElementById('make').options[document.getElementById('make').selectedIndex].text; var url="selmodel.php"; url=url+"?category="+category; url=url+"&make="+make; url=url+"&sid="+Math.random(); xmlhttp_model.onreadystatechange=stateChanged_Model; xmlhttp_model.open("GET",url,true); xmlhttp_model.send(null); function stateChanged_Model(){ if (xmlhttp_model.readyState==4){ document.getElementById("SelModel").innerHTML=xmlhttp_model.responseText;}
}
}
function showSyear(){ if (window.XMLHttpRequest) { xmlhttp_syear = new XMLHttpRequest(); if (xmlhttp_syear.overrideMimeType) { xmlhttp_syear.overrideMimeType('text/xml');}
}
else if (window.ActiveXObject) { try { xmlhttp_syear = new ActiveXObject("Msxml2.xmlHttp_Syear");}
catch (e){ try { xmlhttp_syear = new ActiveXObject("Microsoft.xmlHttp_Syear");}
catch (e) {}
}
}
if (!xmlhttp_syear) { alert('Giving up :( Cannot create an xmlHttp_Make instance'); return false;}
var category = document.getElementById('category').options[document.getElementById('category').selectedIndex].text; var make = document.getElementById('make').options[document.getElementById('make').selectedIndex].text; var model = document.getElementById('model').options[document.getElementById('model').selectedIndex].text; var url="selsyear.php"; url=url+"?category="+category; url=url+"&make="+make; url=url+"&model="+model; url=url+"&sid="+Math.random(); xmlhttp_syear.onreadystatechange=stateChanged_Syear; xmlhttp_syear.open("GET",url,true); xmlhttp_syear.send(null); function stateChanged_Syear(){ if (xmlhttp_syear.readyState==4){ document.getElementById("SelSyear").innerHTML=xmlhttp_syear.responseText;}
}
}
function showEyear(){ if (window.XMLHttpRequest) { xmlhttp_eyear = new XMLHttpRequest(); if (xmlhttp_eyear.overrideMimeType) { xmlhttp_eyear.overrideMimeType('text/xml');}
}
else if (window.ActiveXObject) { try { xmlhttp_eyear = new ActiveXObject("Msxml2.xmlHttp_Eyear");}
catch (e){ try { xmlhttp_eyear = new ActiveXObject("Microsoft.xmlHttp_Eyear");}
catch (e) {}
}
}
if (!xmlhttp_eyear) { alert('Giving up :( Cannot create an xmlHttp_Make instance'); return false;}
var category = document.getElementById('category').options[document.getElementById('category').selectedIndex].text; var make = document.getElementById('make').options[document.getElementById('make').selectedIndex].text; var model = document.getElementById('model').options[document.getElementById('model').selectedIndex].text; var syear = document.getElementById('start_year').options[document.getElementById('start_year').selectedIndex].text; var url="seleyear.php"; url=url+"?category="+category; url=url+"&make="+make; url=url+"&model="+model; url=url+"&syear="+syear; url=url+"&sid="+Math.random(); xmlhttp_eyear.onreadystatechange=stateChanged_Eyear; xmlhttp_eyear.open("GET",url,true); xmlhttp_eyear.send(null); function stateChanged_Eyear(){ if (xmlhttp_eyear.readyState==4){ document.getElementById("SelEyear").innerHTML=xmlhttp_eyear.responseText;}
}}