var xmlHttp; var el_id = 0; function ajax_get(elid, query) { document.getElementById('login_cover').style.display=""; document.getElementById('login_popup').style.display=""; offset=window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop; document.getElementById('login_popup').style.top=40+offset+'px'; document.getElementById('login_popup').style.left=(screen.width-680)/2+'px'; } function stateChanged() { if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { document.getElementById(el_id).innerHTML=xmlHttp.responseText; } } function GetXmlHttpObject() { var xmlHttp=null; try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); } catch (e) { //Internet Explorer try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } } return xmlHttp; }