/* XML HTTP Functions */
var to_server=15000
function getReq(url,func){
	var _t=this;var moz;
	if (window.XMLHttpRequest){this.xmlreq=new XMLHttpRequest();moz=1;}
	else if (window.ActiveXObject){this.xmlreq=new ActiveXObject("Microsoft.XMLHTTP");moz=0;}
	else return false;
	this.xmlto=setTimeout((function() {_t.timeout()}),to_server);
	this.xmlreq.onreadystatechange=(function() {
		if (_t.xmlreq.readyState==4){
			clearTimeout(_t.xmlto);
			if (_t.xmlreq.status==200){
				alert_nc=true;
				var x=_t.xmlreq.responseXML;
				var r=x.getElementsByTagName("r")[0].firstChild.nodeValue;
				if (r==1) sessExp();
				else if (r==0) func.call(this,x);
			}
		}
	});
	this.xmlreq.open("GET",url,true);
	if (moz==1) this.xmlreq.send(null); else this.xmlreq.send();
}
getReq.prototype.timeout=function(){this.xmlreq.abort();}

