

	function nuevoAjax(){
		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 cargarContenido(){
		var c1, c2, contenedor;
		contenedor = document.getElementById('contenedor');
		c1 = document.getElementById('email').value;
		c2 = document.getElementById('consulta').value;		
		ajax=nuevoAjax();
		ajax.open("POST", "modulos/mod_contacto_info.php",true);
		ajax.onreadystatechange=function() {
			if (ajax.readyState==4) {
				contenedor.innerHTML = ajax.responseText
		 	}
		}
		ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		ajax.send("c1="+c1+"&c2="+c2)
	}	
