function troca_abas_oportunidade(y){
	for (x=1;x<=4;x++){
		document.getElementById("oportunidade_parte" + x).style.display="none";
		document.getElementById("aba" + x).className="aba_inativa";
	}
	
	document.getElementById("oportunidade_parte" + y).style.display="block";
	document.getElementById("aba" + y).className="aba_ativa";

}
	function Abrir_pagina(url){
		window.location.href = url;
	}
function consistencias(){
	var form= document.getElementById("form_formulario");
	with(form){
		if(nome.value == ''){
			alert('Favor preenher o campo nome');
			nome.focus();
			return false;
		}
			
		if(email.value == ''){
			alert('Favor preenher o campo email');
			email.focus();
			return false;
		}
			
		if(mensagem.value == ''){
			alert('Favor preenher o campo mensagem');
			mensagem.focus();
			return false;
		}
		
		if(btn_enviar.focus() == true){
			document.getElementById("btn_enviar").style.border="none";
		}
	}
	return true;
	
}

function limpa_campos(){
	var form= document.getElementById("form_formulario");
	with(form){
		nome.value = '';
		email.value = '';
		tel_ddd.value = '';
		tel.value = '';
		cidade.value = '';
		estado.value = '';
		mensagem.value = '';
		nome.focus();
	}
}