
function getResponse(url)
{
	xmlhttp = null;
	try{
		// se ha Firefox
		xmlhttp = new XMLHttpRequest();
		xmlhttp.overrideMimeType("text/xml");
	}catch(e){
		try{
			// se ha IE
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		}catch(e){
			try {
				http_request = new ActiveXObject("Microsoft.XMLHTTP");
			}catch(e){
				return null;
			}
		}
	}
	if(!xmlhttp) return null;
	try{
		xmlhttp.open("GET",url,false);
		xmlhttp.send(null);
	}catch(e){
		return null;
	}
	return xmlhttp.responseText;
}

