function loadXMLDoc(url){
	var obj=this;
	this.runFunctions="";
	
	function load(){
		obj.complete=0;
		if (window.XMLHttpRequest) obj.xmlhttp=new XMLHttpRequest();
		else if (window.ActiveXObject) obj.xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		if(obj.xmlhttp){
			obj.xmlhttp.onreadystatechange=function(){
				if (obj.xmlhttp.readyState==4){
				  if (obj.xmlhttp.status==200){
					obj.complete=1;
					if(obj.runFunctions!=""){
						funcs=obj.runFunctions.split("&");
						for(i=0;i<funcs.length;i++){
							eval(unescape(funcs[i]));
						}
					}
				  }
				}
			};
            d=new Date();

			obj.xmlhttp.open("GET",url+((url.indexOf("?")>=0)?"&rtimestampobj="+d.getTime():"?rtimestampobj="+d.getTime()),true);
			obj.xmlhttp.send(null);
		}
	}
	
	/*Metodo para executar funções especificas do XML*/
	this.run=runF;
	function runF(x){
		if (obj.complete==1){
			eval(x);
		}
		obj.runFunctions+=((obj.runFunctions!="")?"&":"")+escape(x);
	}
	
	/*Metodo para reload do XML*/
	this.reload=load;
	this.reload();
}