function form_validator(theForm)
{

	if(theForm.nombre.value == "") {
		 alert("Por favor, introduzca su nombre");
		 theForm.nombre.focus();
		 return(false);
	}

	if(theForm.email.value == "") {
		 alert("Por favor, introduzca su  email");
		 theForm.email.focus();
		 return(false);
	}

//controlador simple de cajas de emails (scriptmaster)
  if (theForm.email.value.indexOf('@', 0) == -1 ||
	  theForm.email.value.indexOf('.', 0) == -1) { 
	  alert("La dirección de email no es válida"); 
	  theForm.email.focus(); 
	  return(false); 
	  }

	return (true);
}
	

//validación sólo números en campo de texto: debe ir acompañado del evento onkeypress="return isNumericKey(event)" en el input 
function isNumericKey(e)
{
var k = document.all ? e.keyCode : e.which;
return ((k > 47 && k < 58) || k == 8 || k == 0);
}
