var xmlHttp function gotResult(status, headers, result) { //document.domain = "episcopalchurch.org" document.getElementById("txtLegComm").innerHTML= result } function showComm(id) { document.getElementById("txtLegComm").innerHTML= "Querying..." var url="gc_getlegcomm.asp?legcommid=" + id; getUrl(url,gotResult) //xmlHttp=GetXmlHttpObject(stateChanged) //xmlHttp.open("GET", url , true) //xmlHttp.send(null) } function getXmlHttp(){ var xmlhttp; try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { xmlhttp = false; } } if (!xmlhttp && typeof XMLHttpRequest!='undefined') { xmlhttp = new XMLHttpRequest(); } return xmlhttp; } function getUrl(url, cb) { var xmlhttp = getXmlHttp(); xmlhttp.open("GET", url); xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState == 4) { cb(xmlhttp.status, xmlhttp.getAllResponseHeaders(), xmlhttp.responseText); } } xmlhttp.send(null); } document.write('');