 	function SendForm(){
		if (!CheckForm()) return;
		if (ajax_now == 1) return;
		ajax_now = 1;
		f = detect('txt_nombre');
		nombre = f.value;
		f = detect('txt_empresa');
		empresa = f.value;
		f = detect('txt_provincia');
		provincia = f.value;
		f = detect('txt_telefono');
		telefono = f.value;
		f = detect('txt_email');
		email = f.value;
		f = detect('txt_consulta');
		consulta = f.value;
		datatosend = 'nombre=' + encodeURIComponent(nombre) + '&empresa=' + encodeURIComponent(empresa) + '&provincia=' + encodeURIComponent(provincia) + '&telefono=' + encodeURIComponent(telefono) + '&email=' + encodeURIComponent(email) + '&consulta=' + encodeURIComponent(consulta) + '&nocache=' + Math.random();
		ajax.open('POST', url_base + "ajax_send_contact_home.php", true);
		ajax.onreadystatechange = MsgSended;
		ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		ajax.send(datatosend);
//		Dleft = Math.round((document.documentElement.clientWidth/2) - (0)) + "px";
		Dtop = getAnchorPosition('form_link');
//		Dtop = Math.round((document.documentElement.clientHeight/2) - 31 + document.documentElement.scrollTop) + "px";
		f = detect('div_wait');
		f.style.top = Dtop.y - 100 + "px";
		f.style.left = Dtop.x - 60 + "px";// Dleft;
		f.style.display = 'block';
		f.style.visibility = 'visible';
	}

	function MsgSended(){
		if (ajax.readyState==4) {
			f = detect('div_wait');
			f.style.display = 'none';
			f.style.visibility = 'hidden';
			if (ajax.status == 200) {
			  	is_ok = ajax.responseText;
		 		if (is_ok == 1) {
					f = detect('txt_nombre');
					f.value = "Nombre y apellidos ...";
					f = detect('txt_empresa');
					f.value = "Empresa ...";
					f = detect('txt_provincia');
					f.value = "Provincia ...";
					f = detect('txt_telefono');
					f.value = "Teléfono ...";
					f = detect('txt_email');
					f.value = "E-mail ...";
					f = detect('txt_consulta');
					f.value = "Motivo de la consulta ...";
					f = detect('chk_accept');
					f.checked = false;
			  		alert("Gracias por la solicitud, en breve nos pondremos en contacto.");
				} else {
			  		alert("Ha ocurrido un error al enviar su consulta. Por favor, inténtelo nuevamente.");
			  	}
			} else {
			  	alert("Ha ocurrido un error al enviar su consulta. Por favor, inténtelo nuevamente.");
			}
			ajax_now = 0;
		}
	}

