function dialogo(l, a, url, rolagem, nome) {
	if (!rolagem)
		rolagem = "yes";
	
	var pos_x = (screen.availWidth / 2) - (l / 2);
	var pos_y = (screen.availHeight / 2) - (a / 2);

	if (pos_y < 0)
		pos_y = 0; 
	if (pos_x < 0)
		pos_x = 0; 
	
	if (!nome) {
		var tempo = new Date();
		nome = String(tempo.getHours()) + String(tempo.getMinutes()) + String(tempo.getSeconds());
	}
	
	window.open(url,nome,"left="+pos_x+",top="+pos_y+",width="+l+",height="+a+",scrollbars="+rolagem+",status=no,dependent=yes");
}
