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