
<!-- 
function validaEmail(strEmail) 
{
	if (strEmail.indexOf("@")==-1){
		alert("O e-mail '" + strEmail + "' está incorreto.");
		return false;
		}
	if (strEmail.indexOf("@.")!=-1){
		alert("O e-mail '" + strEmail + "' está incorreto.");
		return false;
		}
	if (strEmail.indexOf(".@")!=-1){
		alert("O e-mail '" + strEmail + "' está incorreto.");
		return false;
		}
	if (strEmail.indexOf(".")==-1){
		alert("O e-mail '" + strEmail + "' está incorreto.");
		return false;
		}
	if (strEmail.indexOf("..")!=-1){
		alert("O e-mail '" + strEmail + "' está incorreto.");
		return false;
		}
	if (strEmail.charAt(strEmail.length - 1) == "."){
		alert("O e-mail '" + strEmail + "' está incorreto.");
		return false;
		}
	if (strEmail.charAt(0) == "."){
		alert("O e-mail '" + strEmail + "' está incorreto.");
		return false;
		}

	var Erro = 0
	for (i=0 ; i < strEmail.length ; i++)
	{
		if (strEmail.charCodeAt(i) != 95 && ((strEmail.charCodeAt(i) < 45) || (strEmail.charCodeAt(i) == 47) || ((strEmail.charCodeAt(i) > 57) && (strEmail.charCodeAt(i) < 64)) || ((strEmail.charCodeAt(i) > 90) && (strEmail.charCodeAt(i) < 97)) || (strEmail.charCodeAt(i) > 122)))
		{
			Erro = 1
			i = strEmail.length
		}
	}
	if (Erro == 1)
	{
		alert('Caracteres inválidos no e-mail "' + strEmail + '".')
		return false
	}
	return true
}		


function ValidaForm1() 
{ 
	if(document.formNews.nome.value==""){
        alert("Informe o Nome.");
		document.formNews.nome.focus();
        return false;
    }

	if(document.formNews.email.value==""){
        alert("Informe o E-mail.");
		document.formNews.email.focus();
        return false;
    }
	
	if (!validaEmail(document.formNews.email.value))  
	{
		document.formNews.email.focus();
		return false;
	}
	
	 
	document.all.mostraok.style.display			= "none";
	document.all.mostraaguarde.style.display	= "block";
	
	
	
	document.formNews.target = "mostrager";
	document.formNews.action = "newsletter_inc.asp";
	document.formNews.submit();
    return false;
}

// Tira aspas
function Aspas(pInteiro, oCampo)
{
 if (event.keyCode == 34) 
  {
	event.returnValue = false;
	 	
  }
}

// Evita espaço (campo vazio)
function vazio(texto) {
	if(document.activeElement.tagName == 'INPUT') {
		for(i=0; i < texto.length; i++)
			if(texto.charAt(i) != ' ')
				return false;
		return true;
	}
	else
		return false;		
}


//--> 
