/**
 * @author dealmeida
 */
	
		function ValidaEmail(email)
		{
			 var txt = email;
			 if ((txt.length != 0) && ((txt.indexOf("@") < 1) || (txt.indexOf('.') < 7)))
			 {
				 alert('Email incorreto');
			 	 return false;
			 }
			 else
			 {
			 	return true;
			 }
		}

		function validar_boletin(form) {
			var email = form.email.value;
			
						
			if (email == "") 
			{
				alert('Preencha o campo com seu email.');
				form.email.focus();
				return false;
			}
			
			if(email != "")
			{
				if (!ValidaEmail(email)) {
					form.email.focus();
					return false;
				}
			}
			
			form.submit(); 
			alert('Obrigado. Embreve recebera boletins informativos.');
		}
