function GetModels(setfocus) { var xmlHttp2; try { // Firefox, Opera 8.0+, Safari xmlHttp2=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttp2=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlHttp2=new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser does not support AJAX!"); return false; } } } xmlHttp2.onreadystatechange=function() { if(xmlHttp2.readyState==4) { document.getElementById("ModelsList").innerHTML=xmlHttp2.responseText; if (setfocus==1) document.quicksearch.Model.focus(); } } xmlHttp2.open("GET","/fetchmodels.asp?Make=" + document.quicksearch.Make.value + "&Preselected=" + document.quicksearch.PreselectedModel.value,true); xmlHttp2.send(null); }