FaleConosco = {
	
	ValidaFaleConosco : function(){
	
		if(document.form1.nome.value=='')
		return "Preencha corretamente o campo Nome"
		
		else if(FuncoesGerais.ValidaEmail(document.form1.email.value)==0)
		return "Preencha corretamente o campo E-mail"
		
		else if((document.form1.tel_pre.value.length<2) || (document.form1.telefone.value.length<8))
		return "Preencha corretamente Telefone"
		
		else if(document.form1.estados.value=='')
		return "Preencha corretamente o campo Estado"
		
		else if(document.form1.cidade.value== '')
		return "Preencha corretamente o campo Cidade"

		else if(document.form1.assunto.value== '')
		return "Preencha corretamente o campo Assunto"

		else if(document.form1.mensagem.value.length<5)
		return "Preencha corretamente o campo Mensagem"

	
	return "ok"
	},
	
	
	
	EnviaFaleConosco : function () {	
		if(FaleConosco.ValidaFaleConosco()=='ok'){
			document.getElementById('divLogos').style.display='none';
			document.getElementById('formulario_cont').style.display = 'none';
			document.getElementById('tabela_sucesso').style.display = '';
			document.form1.estado.value = 1;
			document.form1.submit();
		}else{
			document.getElementById('formulario_cont').style.display = 'none';
			document.getElementById('tabela_erro').style.display = '';
			document.getElementById('mensagem_erro').innerHTML = "<b>"+FaleConosco.ValidaFaleConosco()+"</b>";
			document.getElementById('divLogos').style.display='none';
			//alert(FaleConosco.ValidaFaleConosco())	
		}
	},
	
	
	Voltar : function () {
	document.getElementById('formulario_cont').style.display = '';
	document.getElementById('tabela_erro').style.display = 'none';
	document.getElementById('tabela_sucesso').style.display = 'none';
	document.getElementById('divLogos').style.display='';
			
	},
	
	Reinicia : function(){
		document.form1.estado.value = 1;	
	},
	
	Limpar : function () {
	form1.reset();	
	},
	
	
	CarregaDivLogo : function () {

		//alert(document.form1.estado.value)

	}


}