function NoticiaSubmit() {
//	if ( document.frmNoticia.texto.value != "" || ( parseInt(document.frmNoticia.inicioDD.value) >= 1 && parseInt(document.frmNoticia.inicioDD.value) <= 31 && parseInt(document.frmNoticia.inicioMM.value) >= 1 && parseInt(document.frmNoticia.inicioMM.value) <= 12 && parseInt(document.frmNoticia.inicioYYYY.value) >= 1000 && parseInt(document.frmNoticia.inicioYYYY.value) <= 9999 ) || ( parseInt(document.frmNoticia.fimDD.value) >= 1 && parseInt(document.frmNoticia.fimDD.value) <= 31 && parseInt(document.frmNoticia.fimMM.value) >= 1 && parseInt(document.frmNoticia.fimMM.value) <= 12 && parseInt(document.frmNoticia.fimYYYY.value) >= 1000 && parseInt(document.frmNoticia.fimYYYY.value) <= 9999 ) ) {
		document.frmNoticia.submit();
//	}
}

function PesquisaSubmit() {
	if ( document.frmPesquisa.texto.value != "" ) {
		document.frmPesquisa.submit();
	}
}

function ComunicadoSubmit() {
	if ( document.frmComunicado.texto.value != "" ) {
		document.frmComunicado.submit();
	}
}

function ApresentacaoWindow( sName, sUrl, iWidth, iHeight ) {
	var iLeft;
	var iTop;

	if ( screen.width > iWidth ) {
		iLeft = parseInt( ( screen.width - iWidth ) / 2 );
	} else {
		iLeft = 0
	}

	if ( screen.height > iHeight ) {
		iTop = parseInt( ( screen.height - iHeight ) / 2 );
	} else {
		iTop = 0
	}

	window.open( sUrl, sName, 'width=' + iWidth + ',height=' + iHeight + ',resizable=0,scrollbars=0,left=' + iLeft + ',top=' + iTop );
}

