<!--
var tamanhos = new Array('10px','11px','12px','13px','14px','15px','16px','17px');
if (isNaN(contador)) {
 var contador = 0;
}
function alterarTamanhoFonte(zoom) {
    var bolAlterar = 0;
    if (zoom == "+") {
        if (contador < tamanhos.length - 1){
            contador++;
            bolAlterar = 1;
        }
    }
    if (zoom == "-") {
        if (contador > 0) {
            contador--;
            bolAlterar = 1;
        }
    }
    if (zoom == "p") {
        contador = 0;
        bolAlterar = 1;
    }
 if (bolAlterar == 1) {
   document.getElementById("areaGlobal").style.fontSize = tamanhos[contador];
        ajustarSessaoTamanhoFonte(contador);
    }
}
var xmlHttp;
function ajustarSessaoTamanhoFonte(intTamanho) {
 xmlHttp = GetXmlHttpObject();
 if (xmlHttp == null) {
   alert ("Este browser não suporta HTTPRequest");
        return;
 }
 xmlHttp.onreadystatechange = stateChanged;
 xmlHttp.open("GET", "http://www.jfrs.gov.br/infra/InfraAJAX.php?acao=alterarTamanhoFonte&tamanho="+intTamanho, true);
 xmlHttp.send(null);
}
function fecharAviso(numero_aviso){	
	if (document.getElementById("chk_desativar").checked){
		fecharSessaoAviso(numero_aviso);	
	}
	document.getElementById('cinza').style.display='none';
	document.getElementById('mensagem').style.display='none';
	void(0);		
}
function fecharSessaoAviso(numero) {
	xmlHttp = GetXmlHttpObject();
	 if (xmlHttp == null) {
	   alert ("Este browser não suporta HTTPRequest");
			return;
	 }
	 xmlHttp.onreadystatechange = stateChanged;
	 xmlHttp.open("GET", "http://www.jfrs.gov.br/infra/InfraAJAX.php?acao=fecharSessaoAviso&numero="+numero, true);
	 xmlHttp.send(null);
}
function stateChanged() {
 if ((xmlHttp.readyState == 4) || (xmlHttp.readyState == "complete")) {
   //alert(xmlHttp.responseText);
   /*try {
     if(xmlHttp.status == 200) {
       alert(xmlHttp.responseText);
     }
   } catch(componentfailure) {}*/
 }
}
function GetXmlHttpObject() {
 var objXMLHttp = null;
 if (window.XMLHttpRequest) {
   objXMLHttp = new XMLHttpRequest();
 } else if (window.ActiveXObject) {
   objXMLHttp = new ActiveXObject("Microsoft.XMLHTTP");
 }
 return objXMLHttp;
}

function imprimirDIV(strIdDiv) {
	abrirJanela('http://www.jfrs.gov.br/imprimir.php?div='+strIdDiv,750,500);
}

function abrirJanela(arquivo, largura, altura) {
  novaJanela = window.open(arquivo,'novaJanela2','location=0,status=1,resizable=1,scrollbars=1,width='+largura+',height='+altura);
	novaJanela.focus();
}
function abrirConsulta() {
     janelaConsulta = window.open('http://www.trf4.gov.br/trf4/processos/acompanhamento/pesquisa_popup.php?strSecao=RS','janelaConsulta','location=0,status=1,resizable=1,scrollbars=1,width=652,height=500');
     janelaConsulta.focus();
}

function centralizarJanela(largura, altura){
  esquerda = (screen.availWidth/2) - (largura/2);
  topo = (screen.availHeight/2) - (altura/2);
  novaJanela.moveTo(esquerda-10, topo-10);
}
function mostrarAviso(aviso) {
	alert(aviso);
}
function ajustarEventListener(eventListener) {
	tirarBordasCheckboxes();
  document.onmouseover = eventListener;
}
function esconderMostrarSelect(acao) {
	var sel=document.getElementsByTagName("SELECT");
	for(i=0; i<sel.length; i++) {
//		sel[i].style.visibility = acao;
		sel[i].style.zIndex = 1;
	}
}
function avaliarObjeto(event) {
	objeto = window.event.srcElement;
	strObjeto = objeto.toString();
	if (strObjeto.substr(0,4) == "http") {
		esconderMostrarSelect("hidden");
	} else {
		esconderMostrarSelect("visible");
	}
}
function tirarBordasCheckboxes() {
	var sel=document.getElementsByTagName("INPUT");
	for(i=0; i<sel.length; i++) {		
		if ((sel[i].type == "checkbox")||(sel[i].type == "radio")) {
  		sel[i].style.border = "none";
		}
	}
}

function somenteNumeros(e)
{
 if (document.all) // Internet Explorer
  var tecla = event.keyCode;
 else if(document.layers) // Nestcape
  var tecla = e.which;
  if (tecla > 47 && tecla < 58) // numeros de 0 a 9
   return true;
  else
   {
    if (tecla != 8) // backspace
     event.keyCode = 0;
     //return false;
    else
     return true;
   }
}

function plantoes_subsecao() {
	window.location.href = document.getElementById('subsecao').value;
}
function pesquisa_tnu(num_processo) {
	document.body.innerHTML = "<form method='POST' action='https://www2.jf.jus.br/phpdoc/virtus/pesqprocessos.php' id='form_tnu'>"+
							   "<input type='hidden' name='tipo' value='num_pro'>"+
							   "<input type='hidden' name='pesq' value='" + num_processo + "'>";
	document.getElementById('form_tnu').submit();
}
-->