function xmlfnc(){
	this.xmlObj = null;
	this.returnArray = null;
	this.error = null;
	this.xmlurl = "/js_hlserver/getserverinfo_xml.php";
	this.parseType = 0;
	this.sendloadReturnFunc = null;
	
	this.parseNArray = function () {
        //try{
		if(this.xmlObj.responseText.length>10){
			this.returnArray = [];
			var xmlNode = null;
			if (window.ActiveXObject){// Internet Explorer
				xmlNode=new ActiveXObject("Microsoft.XMLDOM");
				xmlNode.async=false;
				xmlNode.loadXML(this.xmlObj.responseText);
			}else{// mozilla, vs,..
				var parser=new DOMParser();
				xmlNode=parser.parseFromString(this.xmlObj.responseText,"text/xml");
			}
			xmlNode = xmlNode.documentElement;
			switch(this.parseType){
				case 1: // sunucu bilgisini toplar
					infoarr = [];
					playerarr = [];
					if(xmlNode.childNodes[0].childNodes[0].nodeValue!=0){
						infoarr = [xmlNode.childNodes[0].childNodes[0].childNodes[0].nodeValue,xmlNode.childNodes[0].childNodes[1].childNodes[0].nodeValue,xmlNode.childNodes[0].childNodes[2].childNodes[0].nodeValue,xmlNode.childNodes[0].childNodes[3].childNodes[0].nodeValue,xmlNode.childNodes[0].childNodes[4].childNodes[0].nodeValue];
					}
					if(xmlNode.childNodes[1].childNodes[0] && xmlNode.childNodes[1].childNodes[0].nodeValue!=0){
						for(i=0;i<xmlNode.childNodes[1].childNodes.length;i++){
							if(xmlNode.childNodes[1].childNodes[i].childNodes[0] && xmlNode.childNodes[1].childNodes[i].childNodes[0].childNodes[0]){
								playerarr.push([xmlNode.childNodes[1].childNodes[i].childNodes[0].childNodes[0].nodeValue,xmlNode.childNodes[1].childNodes[i].childNodes[1].childNodes[0].nodeValue,xmlNode.childNodes[1].childNodes[i].childNodes[2].childNodes[0].nodeValue,xmlNode.childNodes[1].childNodes[i].childNodes[3].childNodes[0].nodeValue,xmlNode.childNodes[1].childNodes[i].attributes.getNamedItem("id").value,xmlNode.childNodes[1].childNodes[i].attributes.getNamedItem("imgurl").value]);
							}
						}
					}
					this.returnArray = [infoarr,playerarr];
				break;
			}
			this.sendloadReturnFunc();
		}
        //}catch(err){ this.error=err; }
    };
    this.sendLoadData = function (parseType,poststr){
		this.parseType = parseType;
		var thisn = this;
        if (window.XMLHttpRequest){// mozilla, vs,..
            this.xmlObj = new XMLHttpRequest();
        } else if (window.ActiveXObject){// Internet Explorer
            this.xmlObj = new ActiveXObject("Microsoft.XMLHTTP")
        }
		this.xmlObj.onreadystatechange = function() {
			if (thisn.xmlObj.readyState == 4 && thisn.xmlObj.status==200) thisn.parseNArray();
		};
		this.xmlObj.open("POST",this.xmlurl,true);
		this.xmlObj.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
		this.xmlObj.send(poststr);
    };
}