function AbrePop(strEndereco, intWidth, intHeight, intTop, intLeft, intScrollBars)
{
	//Jefferson, 20/12/2002
	// Se largura e altura forem 0, abrir janela normal 
	// para navegação (sem parâmetros). Caso contrário, abre com largura e 
	// altura definidos e tira as barras de menu, ferramentas, etc.
	if(intWidth ==0 && intHeight == 0)
	{
		var x = window.open(strEndereco);		
	}
	else
	{
		//Jefferson, 03/01/2003
		// Se Top e Left forem 0, utiliza valor padrão. Caso contrário, 
		// utiliza valores gravados no banco.
		var iTop, iLeft;
		if (intTop == 0)
		{
			iTop = 120;
		}
		else if (intTop == '')
		{
			iTop = 0;		
		}
		else
		{
			iTop = intTop;
		}

		if (intLeft == 0)
		{
			iLeft = 190;
		}
		else if (intLeft == '')
		{
			iLeft = 0;		
		}
		else
		{
			iLeft = intLeft;
		}

		// Jefferson, 22/01/2003
		// Parâmetro opcional. Se for igual a 1, permite scrollbars, se for vazio, não permite
		if(intScrollBars == '1')
		{
			var x = window.open(strEndereco,'janela',"width=" + intWidth + ",height=" + intHeight + ",toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,left=" + iLeft + ",top=" + iTop);			
		}
		else
		{
			var x = window.open(strEndereco,'janela',"width=" + intWidth + ",height=" + intHeight + ",toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,left=" + iLeft + ",top=" + iTop);
		}
	}	
	return;
}

