3 function showResults(str, search_id, url) {
5 document.getElementById(search_id).innerHTML="";
8 xmlHttp=GetXmlHttpObject();
10 alert ("Browser does not support HTTP Request");
15 xmlHttp.onreadystatechange=stateChanged;
16 xmlHttp.open("GET",url,true);
20 function stateChanged() {
21 if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){
22 document.getElementById("livesearch").innerHTML=xmlHttp.responseText;
26 function GetXmlHttpObject() {
29 // Firefox, Opera 8.0+, Safari
30 xmlHttp=new XMLHttpRequest();
34 xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
36 xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");