function abrir(quem,largura,altura,img) {
var a = window.screen.availWidth - largura ; 
var b = window.screen.availHeight - altura ; 
var leftdist = a/2;
var topdist = b/2;
var foto = window.open("","_blank","left=" + leftdist + ",top=" + topdist + ",width=" + largura + ",height=" + altura + ",scrollbars=yes");
foto.document.write("<head><title>Telejato Locacoes</title></head>");
foto.document.write("<body topmargin=0 leftmargin=0 marginheight=0 marginhwidth=0 scroll=no>");
foto.document.write("<img src=\"/imagens/"+ img + "/" + quem + "\" border=0 onDblClick=\"window.close()\" alt=\"Para fechar clique 2x\">");
foto.document.write("</body>");
}
