// JavaScript Document
function datalocal(){
     var d=new Date()
     hl=d.getHours()
     document.cookie = "horalocal="+hl;
}

function trocaestilo(nome, hl) {
  var i, a, main;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
      a.disabled = true;
      if(a.getAttribute("title") == nome) a.disabled = false;
    }
  }
  document.cookie="horalocal="+hl;
}

function mostra(id){
     document.getElementById(id).style.display="block"; 
}

function certezaexcluir(){ 
     resposta=window.confirm("Você tem certeza que deseja EXCLUIR?"); 
     if (resposta){ 
        return true; 
     }else{ 
        return false; 
     } 
} 

function certezaativar(){ 
     resposta=window.confirm("Você tem certeza que deseja ATIVAR?"); 
     if (resposta){ 
        return true; 
     }else{ 
        return false; 
     } 
} 

function certezadesativar(){ 
     resposta=window.confirm("Você tem certeza que deseja DESATIVAR?"); 
     if (resposta){ 
        return true; 
     }else{ 
        return false; 
     } 
}

function alteratamanhofonte(acao){
	if (acao=="aumentar"){
		qtd=0.2;
	}else{
          if (acao=="normal"){
		   qtd=0;
	     }else{
		   qtd=-0.2;
		}
	}
	
	document.getElementById('centro').style.fontSize=1+qtd+'em';
}
