function enviar(){
	var fml=document.contato
	var status=true;
	var arroba = fml.email.value.indexOf("@");
	var ponto = fml.email.value.indexOf(".");
	
	//Valida o campo NOME.
	if(fml.nome.value.length < 3){
		alert("Preencha corretamente o campo 'Nome'.");
		fml.nome.focus();
		status=false;
	}

	//Valida o campo E-MAIL.
	else if(fml.email.value.length < 5 || arroba == -1 || ponto == -1){
		alert("E-mail invalido.");
		fml.email.focus();
		status=false;
	}
	
	//Valida o campo TELEFONE.
	else if(fml.telefone.value.length < 7){
		alert("Telefone invalido.");
		fml.telefone.focus();
		status=false;
	}
	
	
	if(status){
	 fml.submit();
	}
}
