<!--
	function FormataData(Campo,teclapres) 
	{
		var tecla = teclapres.keyCode;
		vr = document.getElementById(Campo).value;
		vr = vr.replace( ".", "" );
		vr = vr.replace( "/", "" );
		vr = vr.replace( "/", "" );
		tam = vr.length + 1;
		if( tecla != 9 && tecla != 8 )
		{
			if( tam > 2 && tam < 5 )
				document.getElementById(Campo).value = vr.substr( 0, tam - 2 ) + '/' + vr.substr( tam - 2, tam );
			if( tam >= 5 && tam <= 10 )
				document.getElementById(Campo).value = vr.substr( 0, 2 ) + '/' + vr.substr( 2, 2 ) + '/' + vr.substr( 4, 4 );
		}
	}


	function EscreveData() 
	{
		hoje = new Date() ; 
		dia = hoje.getDate() ;
		mes = hoje.getMonth ()+1; 
		ano = hoje.getFullYear()


		if (dia < 10) dia = "0" + dia ;
		if (mes < 10) mes = "0" + mes ;
		if (ano < 2000) ano = "19" + ano ;
		document.write (dia + "/" + mes + "/" + ano) ;
	}

	function ativo1(src) 
	{
		if (!src.contains(event.fromElement))
		{
			src.bgColor = '#C6DEEB';
		}	
	}

	function inativo(src,corinativa) 
	{
		if (!src.contains(event.toElement))
		{
			src.bgColor = '#FFFFFF';
		}
	}
	
	function ativotopo(src) 
	{
		if (!src.contains(event.fromElement))
		{
			src.bgColor = '#C6DEEB';
		}
	}
	
	function inativotopo(src,corinativa) 
	{
		if (!src.contains(event.toElement))
	 	{
	  		src.bgColor = '';
	 	}
	}

	function acesso(formu, dado)
	{
		var documento=document.forms[formu];
		documento.links.value=dado;
		documento.submit();
	}

	function AbreNoticia(ntc)
	{
		ntc=window.open("./Noticias/DetalheNoticia.cfm?ntc="+ntc,
						"ntc", "scrollbars=1,resizable=1, width=700,height=500,top=50,left=50");
		ntc.focus();
	}
	
	function Estatuto()
	{
		est=window.open("./Estatuto/EstatutoSINPRFES.pdf","est", "scrollbars=1,resizable=1, width=700,height=500,top=50,left=50");
		est.focus();
	}

	function AbrePrestacaoContas(ptc)
	{
		ptc=window.open("./prestacaocontas/detalheprestacaocontas.cfm?ptc="+ptc,
						"ptc", "scrollbars=0,resizable=0, width=700,height=500,top=50,left=50");
		ptc.focus();
	}

	function AbreConvenio(cnv)
	{
		cnv=window.open("./convenio/detalheconvenio.cfm?cnv="+cnv,
						"cnv", "scrollbars=0,resizable=0, width=700,height=500,top=50,left=50");
		cnv.focus();
	}

	function Abredestaque(dtq)
	{
		dtq=window.open("./destaques/detalhedestaque.cfm?dtq="+dtq,
						"dtq", "scrollbars=0,resizable=0, width=700,height=500,top=50,left=50");
		dtq.focus();
	}

	function AbreJuridico(jur)
	{
		jur=window.open("./juridico/detalhejuridico.cfm?jur="+jur,
						"jur", "scrollbars=0,resizable=0, width=700,height=500,top=50,left=50");
		jur.focus();
	}

	function AbreEvento(eve)
	{
		eve=window.open("./eventos/detalheeventos.cfm?eve="+eve,
						"eve", "scrollbars=0,resizable=0, width=700,height=500,top=50,left=50");
		eve.focus();
	}

	function AbreRealizacao(rea)
	{
		rea=window.open("./realizacoes/detalherealizacoes.cfm?rea="+rea,
						"rea", "scrollbars=0,resizable=0, width=700,height=500,top=50,left=50");
		rea.focus();
	}

	function AbreArtigo(art)
	{
		art=window.open("./artigos/detalheartigos.cfm?art="+art,
						"art", "scrollbars=0,resizable=0, width=700,height=500,top=50,left=50");
		art.focus();
	}

	function AbreInformativo(inf)
	{
		inf=window.open("./informativo/detalheinformativo.cfm?inf="+inf,
						"inf", "scrollbars=0,resizable=0, width=700,height=500,top=50,left=50");
		inf.focus();
	}

	function Imprimir()
	{
		Botoes_1.style.visibility='hidden';
		window.print();
		Botoes_1.style.visibility='visible';
	}

	function EmailNoticia()
	{
		alert('Em desenvolvimento')
	}
	
-->
