
biXml = function(filename,data){
	if(data){
		this.data=data;
		this.method="POST";
		
	}else{
		this.data=null;
		this.method="GET";
	}
	this.filename=filename;
 	this.load();
}

biXml.prototype.load=function(){
	try {
		this.xmlDoc = new XMLHttpRequest();
		this.xmlDoc.overrideMimeType("text/xml");
	}catch(e) {
		try {
			this.xmlDoc = new ActiveXObject("Microsoft.XMLHTTP");
			
		}
		catch(e) {
			alert(e+"no xml support");
		}
	}
	try {
		this.xmlDoc.open(this.method, this.filename,false);
		this.xmlDoc.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
		this.xmlDoc.send(this.data);
		//if(this.data)  document.getElementById("galAction").innerHTML=this.data;   //alert(":(\n"+this.data);
	}
	catch(e) {
		alert(e+"no xmlfile found");
	}
}
