var tam = 11;

function mudaFonte(tipo,elemento){
	if (tipo=="mais") {
		if(tam<18) tam+=1;
		
	} else {
		if(tam>10) tam-=1;
		
	}
	document.getElementById('mudaFonte').style.fontSize = tam+'px';
	document.getElementById('texto_corrido').style.fontSize = tam+'px';
	
}


						
/* --------- */





// Função para ativar o submenu
function mostrarMenu(obj)
{
	   document.getElementById(obj).style.display = "";
	
}
function esconderMenu(obj)
{
	
	  document.getElementById(obj).style.display = "none";
	
	
}

// Função para validar o formulário de contato
function Validaform(form)
	{
 	var msg='Por favor corrija os seguintes campos:\n';
	 if (form.nome.value=='') msg = msg+'Campo Nome.\n';
	 if (form.email.value=='') msg = msg+'Campo Email.\n';
	 if (form.assunto.value=='') msg = msg+'Campo Assunto.\n';
	 if (form.mensagem.value=='') msg = msg+'Campo Comentário.\n';
 		var tipo = /^[\w-]+(\.[\w-]+)*@(([\w-]{2,63}\.)+[A-Za-z]{2,6}|\[\d{1,3}(\.\d{1,3}){3}\])$/;
		 if (msg!='Por favor corrija os seguintes campos:\n')
		 {
		 alert(msg);
		 return false;
		 }
		  if (!tipo.test(form.email.value))
		 {
		 alert("Favor informar um email válido.")
		 return false;
		 }
		 return true;
		}



// Função para abrir pop up
function abrepop(page) {
        window.open(page,'','scrollbars=yes,width=300,height=400');
}
function abrepopgestao(page) {
        window.open(page,'','scrollbars=no,width=770,height=508');
}