<!-- funçoes por Walker de Alencar. //-->
function Hide(id) {
	document.getElementById( id ).style.display = 'none';
}
function Show(id) {
	document.getElementById( id ).style.display = '';
}

function HideShow(id) {
	if ( document.getElementById( id ).style.display == 'none' ) {
		Show( id );							
	} else {
		Hide( id );
	}
}

function MultiHideShow(prefix,id,qtd){
	for( x = 1; x <= qtd; x++ ) {
		if ( x != id ) {
			Hide( prefix + x );
		}
	}
	HideShow( prefix + id );
}

function CheckView(idchkbox,idToView){
	if (document.getElementById(idchkbox).checked) {
		Show(idToView);
	} else {
		Hide(idToVieW);
	}
}

function pop(pagina,nome,larg,altu,scrollbar) {
  PosIniX=((screen.availWidth/2)-(larg/2));
  PosIniY=((screen.availHeight/2)-(altu/2));
  window.open(pagina,nome,'toolbar=no,statusbar=no,location=no,directories=no,menubar=no,scrollbars='+scrollbar+',resizable=no,top='+PosIniY+',left='+PosIniX+',width='+larg+',height='+altu+'');
  window.refresh;
}

function confirmar(txt,acao){
	if (confirm(txt)){
		location.href = acao;	
	}
}
function nconfirmar(txt,acao){
	if (!confirm(txt)){
		location.href = acao;	
	}
}