<!--
// Validación del modelo básico del formulario de contacto
function validarFormulario(formulario) {
	with (formulario) {
		var ok = true;
		if (ok) ok = validate("must", true, txtImporte, "campo \"importe a solicitar\"");
		if (ok) ok = validate("must", true, txtNombre, "campo \"nombre y apellidos\"");
		if (ok) ok = validate("eMail", true, txtEmail, "campo \"e-mail\"");
		if (ok) ok = validate("must", false, txtSaldoPendiente, "campo \"saldo pendiente de la hipoteca\"");
		if (ok) ok = validate("must", false, txtASNEFRAIImporte, "campo \"saldo pendiente de ASNEF O RAI\"");
		if (ok) ok = validate("must", true, lstProvincia, "campo \"provincia\"");
		if (ok) ok = validate("must", true, lstFinPrestamo, "campo \"finalidad del préstamo\"");
		if (ok) ok = validate("phoneNumber", true, txtMovil, "campo \"movil\"", "NOSE");
		if (ok) ok = validate("must", true, txtComentarios, "campo \"comentarios\"");

		if (ok) {
			if (txtImporte.value < 750) {
				alert("El importe debe ser superior a 750 Euros");
				ok = false;
			}
			/*if (txtImporte.value >= 30000) {
				alert("El importe debe ser inferior a 30.000 Euros");
				ok = false;
			}*/
		}

		if (ok) {
			if (!chkPrivacidad.checked) {
			 ok = false;
			 alert("Antes de enviar el formulario es necesario que lea y acepte la política de privacidad.");
			 }
		}

	}

	if (ok) return true;
	else {
		return false;
	}

}

//-->
