function getXMLHTTP(){var a=false;try{a=new XMLHttpRequest}catch(b){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(c){try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(d){a=false}}}return a} function getModel(a){a="http://"+location.hostname+"/modules/findmodel.php?manufacture="+a;var b=getXMLHTTP();if(b){b.onreadystatechange=function(){if(b.readyState==4)if(b.status==200)document.getElementById("modelcontent").innerHTML=b.responseText;else alert("There was a problem while using XMLHTTP:\n"+b.statusText)};b.open("GET",a,true);b.send(null)}};