function popup(url, width, height, scrollbars)
{
	var config = "width=" + width + ",height=" + height + ",menubar=1,"
		+ "toolbar=0,location=0,status=0,resizable=1,scrollbars="
		+ (scrollbars == 1 ? "1" : "0") + ",top="
		+ ((window.screen.height - height) / 4) + ",left="
		+ ((window.screen.width - width) / 3);
	var obj = window.open(url, "", config);
	obj.focus();
}

function getObject(id)
{
	var obj = document.all ? document.all[id] : document.getElementById(id);
	return obj;
}

function mostrarLegenda(legenda, e)
{
	var obj = getObject('lrLegendaArq');
	obj.innerHTML = legenda;
	obj.style.top = e.clientY;
	obj.style.left = e.clientX + 20;
	obj.style.display = "block";
}

function ocultarLegenda()
{
	getObject('lrLegendaArq').style.display = 'none';
}

