function janela(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no,status=no'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function popup(imagem) {
	janela('./imagem.php?imagem=' + imagem, '_popup_', 640, 480, 'no');
}

function abrirPopup($endereco) {
    tb_show("", $endereco + "?keepThis=true&TB_iframe=true&height=450&width=700");
}