

function _go2FTP()
{
	login	=	document.form_restrito.login.value;
	senha	=	document.form_restrito.senha.value;

	url	=	"ftp://"+login+":"+senha+"@201.31.130.136/";
	window.open(url, 'FATOR_FTP');
	
	setTimeout("document.form_restrito.reset();",500);
}


/*
	opções
	scrollbars=yes, status=no, resizable=yes, toolbar=no, directories=no, menubar=no
*/

function pop_up_center_flex(local, instan, w, h, carac)
{
	largura = screen.width;
	altura 	= screen.height;
	XX 	= (largura-w)/2;
	YY	= (altura-h)/2;
	janela = window.open(local,'POP_UP'+instan,'width='+w+',height='+h+',left='+XX+',top='+YY+','+carac);
	janela.focus();
}


function _go(selObj)
{
valor = selObj.options[selObj.selectedIndex].value;
	if(valor != "#"){
		self.location = valor;
	}
}

function excluir(){
	return confirm('Confirma remoção do item?');
}

function addToFavorites(){
	if(document.all){
		window.external.AddFavorite(window.location,document.title);
	}else{
		window.sidebar.addPanel(document.title,location.href,"");
	}
}


function ChangeFontSize(acao) {
	var ObjTexto		= (document.getElementById) ? document.getElementById('internas-central') : document.all('internas-central');
		if(ObjTexto==null){
			var ObjTexto	= (document.getElementById) ? document.getElementById('internas-miolo') : document.all('internas-miolo');
		};
	
	var FonteTamAtual	= parseInt(document.query_busca.diversos.value);



	switch(acao){
		case '+':
			FonteTamNovo	=	FonteTamAtual+2;
			break;
		case '-':
			FonteTamNovo	=	FonteTamAtual-2;
			break;
		case 'r':
			FonteTamNovo	=	11;
			break;
	}
	
	document.query_busca.diversos.value	=	FonteTamNovo;
	ObjTexto.style.fontSize			=	FonteTamNovo+"px";
}

