function ValidLength(item, len) 
		{	return(item.length >=len);
		}

		function ValidEmail(item)
		{	if(!ValidLength(item,5)) return false;
			if(item.indexOf('@',0) == -1) return false;
			if(item.indexOf('.',0) == -1) return false;
			if(item.indexOf(',',0) > 0) return false;
			return true;	
		}

		function sendform()
		{	
			errfound = false;

			if (!ValidEmail(document.forms[0].NP1_EMAIL.value))
				error("email");
			
			if (!document.forms[0].informativa.checked)
				error("privacy");


			if (errfound == false)
				document.forms[0].submit();
		}

		function error(text)
		{	if (errfound) return;
			document.location.href="/alert.asp?L=<%=L%>&tipo=" + text;
			errfound = true;
		}
