
<!-- 
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 ValidaFormnn1() 
{ 

	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.formNews.mostraok.style.display		= "none";
	//document.formNews.mostraaguarde.style.display	= "block";
	
	
	
	document.formNews.target = "mostrager";
	document.formNews.action = "newsletter_inc.asp";
	document.formNews.submit();
    return false;
}



function ValidaForm2() 
{ 
	if(document.formNewsimprensa.nome.value==""){
        alert("Informe o Nome.");
		document.formNewsimprensa.nome.focus();
        return false;
    }

	if(document.formNewsimprensa.email.value==""){
        alert("Informe o E-mail.");
		document.formNewsimprensa.email.focus();
        return false;
    }
	
	if (!validaEmail(document.formNewsimprensa.email.value))  
	{
		document.formNewsimprensa.email.focus();
		return false;
	}
	
	 
	//document.all.mostraok.style.display			= "none";
	//document.all.mostraaguarde.style.display	= "block";
	document.getElementById("mostraok").style.display = "none";
	document.getElementById("mostraaguarde").style.display = "block";
	
	
	document.formNewsimprensa.target = "mostrager";
	document.formNewsimprensa.action = "newsletter_inc.asp?imprensa=1";
	document.formNewsimprensa.submit();
    return false;
}

//--> 
