	function mostra_esconde (id_mostra, id_esconde, mostra_se, igual)
	{
		if (!mostra_se)
			_mostra_esconde(id_mostra, id_esconde);
		else if (mostra_se == igual)
			_mostra_esconde(id_mostra, id_esconde);
		else if (mostra_se != igual)
			_mostra_esconde(id_esconde, id_mostra);
	}
	
	function _mostra_esconde (id_mostra, id_esconde)
	{
		var elm_m = document.getElementById(id_mostra);
		if (elm_m) elm_m.style.display = '';
		
		var elm_e = document.getElementById(id_esconde);
		if (elm_e) elm_e.style.display = 'none';
	}

	function troca(obj,path)
	{ 
	  	if (obj.alt == "mostrar")
	  	{
	  		obj.src = path+"/mais.png";
	  		obj.alt = "esconder";
	  	} 
	  	else 
	  	{
	  		obj.src = path+"/menos.png";
	  		obj.alt = "mostrar";
	  	}
	}
	<!-- funcoes utilizadas no Relatório de Status Validadores -->
	function maismenos(obj1,obj2,path)
	{
    	if (document.getElementById(obj2).style.display == 'none') { 
    		mostra_esconde(obj2); 
    		troca(obj1,path); 
    	}
		else {
			mostra_esconde(null,obj2); 
			troca(obj1,path); 
		}
	}
	
	function trocaimagem(id,src)
	{
		if (id != null) {
		document.getElementById(id).src=src;
		}
	}
	
	function trocacor(id,cor)
	{
		document.getElementById(id).style.color=cor;
	}
