

	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, c3, c4, c5, c6, c7, contenedor;
		contenedor = document.getElementById('cform');
		c1 = document.getElementById('nombre').value;
		c2 = document.getElementById('apellidos').value;
		c3 = document.getElementById('localidad').value;
		c4 = document.getElementById('provincia').value;
		c5 = document.getElementById('telefono').value;
		c6 = document.getElementById('email').value;
		c7 = document.getElementById('consulta').value;		
		ajax=nuevoAjax();
		ajax.open("POST", "mod/contacto_info.inc.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+"&c3="+c3+"&c4="+c4+"&c5="+c5+"&c6="+c6+"&c7="+c7)
	}	