function fncAbrePopup(html, nome, width, height, scroll){
		var wArea = screen.width;
		var hArea = screen.height;
		tPop = Math.ceil((wArea - (eval(width) + 8)) / 2);
		lPop = Math.ceil((hArea - (eval(height) + 30)) / 2) + (screen.height == 600 ? 45 : 0);
		pop = open(html, nome, "top="+lPop+",left="+tPop+",width="+width+",height="+height+",scrollbars="+scroll);
}

function fncAbreAjuda(idArea) {
	fncAbrePopup('../../help/help.asp?idArea=' + idArea,'Help',400,500,1);
}

function fncAbrePop(sPagina,iLargura,iAltura){
	window.open(sPagina,'','width=' + iLargura + ',height=' + iAltura + ',scrollbars=1,resizable=1');}
	
function fncConfirma(stPalavra, stComplemento){
 if(stComplemento.length>0) stComplemento=stComplemento + '\n';
 if(prompt(stComplemento+ 'Digite "' + stPalavra + '" para confirmar a ação.','')==stPalavra)
	return true
 else
	{
	alert('Confirmação errada, a ação NÃO será realizada');
	return false;
	}
}

function fncMudaPagina(nmPagina)
	{
	frmManut.nmPagina.value=nmPagina
	frmManut.submit();
	}


function fncContador(obCampo, obCampoCaracter, nmLimite)
{    
	if (obCampo.innerHTML.length >= eval(nmLimite))
	{
	    obCampo.innerHTML = obCampo.innerHTML.substring(0,nmLimite);
	}
	obCampoCaracter.innerHTML = eval(obCampo.value.length) + ' de ' + nmLimite;
}