function validaForm(nform) {

	if (nform.nome.value == "") {
		alert("O campo NOME é obrigatório.");
		nform.nome.focus();
		nform.nome.select();
		return false;
	}
	else
	{
		if (nform.assunto.value == "") {
			alert("O campo ASSUNTO é obrigatório.");
			nform.assunto.focus();
			nform.assunto.select();
			return false;
		}
		else
		{
			if (nform.mensagem.value == "") {
				alert("O campo MENSAGEM é obrigatório.");
				nform.mensagem.focus();
				nform.mensagem.select();
				return false;
			}
			else
			{
				if (nform.email.value == "") {
					alert("O campo E-MAIL é obrigatório.");
					nform.email.focus();
					nform.email.select();
					return false;
				}
				else
				{
					prim = nform.email.value.indexOf("@")
					if ((prim < 2) || (nform.email.value.indexOf("@",prim + 1) != -1) || (nform.email.value.indexOf(".") < 1) || (nform.email.value.indexOf(" ") != -1) || (nform.email.value.indexOf(".@") > 0) || (nform.email.value.indexOf("@.") > 0) || (nform.email.value.indexOf("/") > 0) || (nform.email.value.indexOf("[") > 0) || (nform.email.value.indexOf("]") > 0) || (nform.email.value.indexOf("(") > 0) || (nform.email.value.indexOf(")") > 0) || (nform.email.value.indexOf("..") > 0)) {
						alert("O e-mail informado parece não estar correto.");
						nform.email.focus();
						nform.email.select();
						return false;
					}
				}
			}
		}
	}
	
	return true;
}
