function janela_mapavirtual(caminho){
	Wwidth  = 590;
	Wheight = 430;

	tamW = screen.width;
	tamH = screen.height;

	posW = (tamW/2) - (Wwidth/2);
	posH = (tamH/2) - (Wheight/2);	

	params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight;
	
	window.open(caminho,'janela',params);
}
function abrirjanela(caminho){
	Wwidth  = 515;
	Wheight = 480;

	tamW = screen.width;
	tamH = screen.height;

	posW = (tamW/2) - (Wwidth/2);
	posH = (tamH/2) - (Wheight/2);	              

	params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight+",scrollbars=1,toolbar=1";
	
	window.open(caminho,'janela',params);
}

function abrirjanelaorg(caminho){
	Wwidth  = 780;
	Wheight = 480;

	tamW = screen.width;
	tamH = screen.height;

	posW = (tamW/2) - (Wwidth/2);
	posH = (tamH/4) - (Wheight/4);	              

	params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight+",scrollbars=1,toolbar=1";
	
	window.open(caminho,'janela',params);
}

function abreExtrato(caminho){
	Wwidth  = 780;
	Wheight = 580;

	tamW = screen.width;
	tamH = screen.height;

	posW = (tamW/2) - (Wwidth/2);
	posH = (tamH/2) - (Wheight/2);

	params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight+",scrollbars=1,status=0";

	window.open(caminho,'Extrato',params);
}

function abreUm(caminho){
	if(screen.width == "800"){
		window.open(caminho,'LOGIN','width=400,height=300,top=50,left=200,scrollbars=1,status=0,toolbar=1');
	}
	else{

		Wwidth  = 400;
		Wheight = 300;

		tamW = screen.width;
		tamH = screen.height;

		posW = (tamW/2) - (Wwidth/2);
		posH = (tamH/2) - (Wheight/2);

		params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight+",status=0";

		window.open(caminho,'LOGIN',params);
	}
}

