function ContagemFrame(modulo,caminho) {
	frameAux = self;
	while ((frameAux.name!='FrameEsq')&&(frameAux.name!='FrameDir')&&(frameAux.name.length!=0)) {
		frameAux = frameAux.parent;
	}
	if (frameAux.name.length!=0) {
		frameAux.parent.contador.location.href = caminho + 'estatistica2.asp?modulo='+modulo;
	}
}
function MudaFrame(opcao,base) {
	frameAux = parent;
	while ((frameAux.name!='direita')&&(frameAux.name.length!=0)) {
		frameAux = frameAux.parent;
	}
	if (frameAux.name=='direita') {
		browserVer = parseInt(navigator.appVersion);
		if ((navigator.appName == "Netscape" && browserVer >= 3) || browserVer >= 4) {
			frameAux.location.href = base + 'fr_direita.asp?opcao=' + opcao;
		}
		else {
			frameAux.location.href = base + 'fr_direita.asp?opcao=' + opcao;
		}
	}
	else {
		location.href = base + 'fr_direita.asp?opcao=' + opcao;
	}
}

//busca frame no "primeiro nivel" da estrutura de frames de nome 'principal'
function getFramePrincipal(){
	var frameAux = self;
	var nome = 'principal';
	
	while (frameAux.name.length>0 && frameAux.name!=nome) {
		frameAux = frameAux.parent;
	}
	if (frameAux.name!=nome){
		frameAux = frameAux.principal;
	}
	return (frameAux);
}