//Desarrollado por Jesus Liñán
//ribosomatic.com
//Puedes hacer lo que quieras con el código
//pero visita la web cuando te acuerdes

function objetoAjax(){
	var xmlhttp=false;
	try {
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
		try {
		   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (E) {
			xmlhttp = false;
  		}
	}

	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		xmlhttp = new XMLHttpRequest();
	}
	return xmlhttp;
}

function MostrarConsulta(url,ele_most){
	if(url=='1')
		file_url="habitaciones.php";
	if(url=='2')
		file_url="tar_ser.php";
	if(url=='3')
		file_url="testimonios.php";
	if(url=='4')
		file_url="ubiquenos.php";
	if(url=='5')
		file_url="contac.php";
	if(url=='6')
		file_url="soporte/respuesta.php";
	
	divResultado = document.getElementById(ele_most);
	ajax=objetoAjax();
	ajax.open("POST", file_url);
	ajax.onreadystatechange=function() {
		if (ajax.readyState==4) {
			divResultado.innerHTML = ajax.responseText
		}
	}
	ajax.send(null)
}