function Open(imagem,largura) {
altura = 400
posx = (screen.width/2)-(largura/2)
posy = (screen.height/2)-(altura/2)
//"resizable=no,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0,width=587,height=70"
newin = window.open("","Engedep","scrollbars=1, width=" + largura + ", height=" + altura + ", top=" + posy + ", left=" + posx)
var arquivo = ""+ 
"<html>" +
"<head>" +
"<title>Engedep - Certificados</title>" +
"</head>" +
"<body topmargin='5' leftmargin='0'>"+
"<table border='0' cellspacing='0' cellpadding='0'>"+
"<tr>"+
"<td align='center' valign='middle'><img src='" + imagem + "'></td>"+
"</tr>"+
"</table>"+
"</body>"+
"</html>"
newin.document.open()
newin.document.write(arquivo)
newin.document.close()
newin.focus()
}
