var g_xmlhttp = null; ///////////////////////////////////////////////////////////////////// function getXMLHttp() { g_xmlhttp=null; try { // Firefox, Opera 8.0+, Safari g_xmlhttp = new XMLHttpRequest(); } catch (e) { // Internet Explorer try { g_xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { g_xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert('no AJAX support'); } } } } ///////////////////////////////////////////////////////////////////// function sendRequest(str) { getXMLHttp(); g_xmlhttp.open("GET",str,true); g_xmlhttp.send(null); } /////////////////////////////////////////////////////////////////////