function esCorreo(cadena){	if (cadena == null)		return (false);	var aux1 = 0;	if (window.RegExp)	{		var temporal1 = "a";		var temporal2 = new RegExp(temporal1);		if (temporal2.test(temporal1)) aux1 = 1;	}	if (!aux1)		return (cadena.indexOf(".") > 2) && (cadena.indexOf("@") > 0);	var reg1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");	var reg2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");	return (!reg1.test(cadena) && reg2.test(cadena));}	function verifica(theForm){	if ((theForm.email.value == "") || (theForm.nombre.value == "")) {		 theForm.nombre.focus();		 alert("Debe Introducir nombre y email"); 		 return(false);	}		var string=(theForm.nombre.value);	if (string.length < 4)	{	   theForm.nombre.focus();	   alert("Nombre debe tener cuatro caracteres o más"); 	   return(false);	}			var aux=esCorreo(theForm.email.value);	if (aux==false)	{		alert("La dirección de correo no es válida");		theForm.email.focus();		return(false);	}		return(true);}