// JavaScript Document
<!--
	// Mostra um pop-up com as notas
	function showNotas(url,largura,altura) {
		window.open(url,'janela','width='+ largura +', height=' + altura + ', top=50, left=50, status=yes, scrollbars=yes');
	}
	
	// (Des)Habilida a div e muda o ícone
	function showPatch(cod){
		
	    var icone = document.getElementById("img"+cod);
		var div   = document.getElementById("div"+cod);
		
		if(isClosed(cod)){
			icone.src = "arquivos/ico_menos.gif";
			div.style.display = 'block';
			
/*			if(isEmpty(cod)){
				 div.innerHTML = "<table width='95%' align='center'><tr><td align='center' valign='middle'><p align='center' class='resumoTexto'>Acessando dados...</p></td></tr></table>";
			     makeRequestPatch("patch.jsp?cod="+cod);
				 div.innerHTML = document.conteudo;
				 document.conteudo = '';
				 
			}*/
			
		}else{ 
		
			icone.src = "arquivos/ico_mais.gif";
		    div.style.display = 'none';

			
		}
	}
	
	// Testa se a DIV está visível
	function isClosed(cod) {
		var div = document.getElementById("div"+cod);
		if(div.style.display == 'none') {
			return true;
		}
		
		return false;
	}
	
	// Testa se a div está vazia
	function isEmpty(cod) {
		var div = document.getElementById("div"+cod);
		
		if (div.childNodes.length == 0) {
			return true;
		}
		
		return false;
	}
-->
