<!--
function PopUp(theID) {
	window.open('/documentos/popup.aspx?id='+theID,null,"height=200,width=400,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes");
}

function Visto(theID,thePag) {
	document._FormMain.docID.value = theID;
	document._FormMain.operacao.value = "VISTO";
	document._FormMain.pag.value = thePag;
	document._FormMain.submit();
}

function NaoVisto(theID,thePag) {
	document._FormMain.docID.value = theID;
	document._FormMain.operacao.value = "NAOVISTO";
	document._FormMain.pag.value = thePag;
	document._FormMain.submit();
}

function Noticia(theID) {
	document.FormNoticia.id.value = theID;
	document.FormNoticia.submit();
}

function Associado(theID,theType) {
	document.FormAssociado.id.value = theID;
	document.FormAssociado.tipo.value = theType;
	document.FormAssociado.submit();
}

function SubTema(theID) {
	document.FormSubTema.id.value = theID;
	document.FormSubTema.ano.value = document.FormAno.Select_ListagemAnos.value;
	document.FormSubTema.submit();
}

function NavSubTema(thePag) {
	document._FormMain.pag.value = thePag;
	document._FormMain.submit();
}

function VerDocumento(theID) {
	document.FormDocumento.id.value = theID;
	document.FormDocumento.submit();
}

function SubTemaH(theID) {
	document.FormSubTema.id.value = theID;
	document.FormSubTema.submit();
}

function ShowHide(tid,n) {
	if (eval("document.all."+tid+".style.display")=="none") {
        for (i=1;i<=n;i++) { eval("document.all.t"+i+".style.display='none'"); }
		eval("document.all."+tid+".style.display=''");
		}
	else {
		eval("document.all."+tid+".style.display='none'");
	}	
}

// -->