	function setTitle(txt1, txt2, btnTxt, lnk){
		if (txt2 != undefined){
			if(txt2 !="")document.getElementById('titleTD').height = 50; else document.getElementById('titleTD').height = 40;
			document.getElementById('Titulo').innerHTML =
				'<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>' +
					'<td align="left" class="barra" style="font-size:10px">' + txt2 + '<br><img src="../img/pixel_trans.gif" width="1" height="3" alt="" border="0"><br></td>'+
					(btnTxt != undefined && lnk != undefined?'<td align="right" valign="'+(txt2 !=""?'middle':'bottom')+'" rowspan="2"><input id="topBtn" class="botg" type="button" value="'+btnTxt+'" onclick="document.location.href=\''+lnk+'\'"></td>':'')+
					'</tr><tr>'+
					'<td align="left" class="barra">'+txt1+'</td>'+
				'</table>';
		}else{
			document.getElementById('titleTD').height = 40;
			document.getElementById('Titulo').innerHTML = txt1;
		}
	}
	var Aberto = ""
	var Fechado = ""

	function mostra(item,qtd){
		for(i=1;i<=qtd;i++){
			obj = eval(item + i);
			if (obj.style.display=='none'){
				obj.style.display='';
			}
			else{
				obj.style.display='none'
			}
		}
		return false;
	}

	function popup(URL,w,h, nomepop,scroll){
		if(!scroll){
			scrollbars = 'no';
		} else {
			scrollbars = 'yes';
		}
		if(nomepop=="")nomepop="popWindow";
		obj = window.open(URL, nomepop, 'width=' + w + ',height=' + h +',top=' + (((screen.height - h) / 2) - 30) + ',left=' + ((screen.width - w) / 2)+',scrollbars='+scrollbars);
		return obj;
	}

	//pop-up de imagens - by Yves Apsy
	function showPopImg(path,img,alt,w,h,scroll) {
		if(!scroll){
			scrollbars = 'no';
		} else {
			scrollbars = 'yes';
		}
		options="toolbar=no,location=no,width="+w+",height="+h+",status=no,menubar=no,scrollbars=" + scroll + ",resizable=no,top=" + ((screen.height - h) / 2) + ",left=" + ((screen.width - w) /2);
		pop=window.open(path+"inc/popImg.php?img="+img+"&alt="+alt,"popImgEsser",options);
	}


