// JavaScript Document

function valid_form(){
	var campo = document.wf.name; val = campo.value;
	val = val.replace(/^\s*|\s*$/g,"");
	 if (( val.length < 3 ) || (val.length > 40 )){
		 var msg='Por favor, ingrese un su nombre.';
		 alert (msg);
		 campo.select();
		 return false;
	}
		var campo = document.wf.email; val = campo.value;
	val = val.replace(/^\s*|\s*$/g,"");
	 if (( val.length < 3 ) || (val.length > 64 )){
		 var msg='Por favor, ingrese su email.';
		 alert (msg);
		 campo.select();
		 return false;
	}
if (! /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(val)){
   alert("La direccion de email es incorrecta.");
	campo.select();
   return false;
 }	
	var campo = document.wf.consulta; val = campo.value;
	val = val.replace(/^\s*|\s*$/g,"");
	 if (( val.length < 10 ) || (val.length > 1024 )){
		 var msg='Por favor, ingrese su consulta.';
		 alert (msg);
		 campo.select();
		 return false;
	}

}