// JavaScript Document
// recupera as informações
function Abrir_Foto(foto,largura,altura) {

// configurações da janela
features = "width=" + largura + ", height=" + altura + ", scrollbars=yes"
newin = window.open("","",features)
newin.blur()

// início da geração do conteúdo html
var arquivo = "" + 
"<html>" +
"<head>" +
"<title>Refazenda</title>" +
"<link href='_css/geral.css' rel='stylesheet' type='text/css' />" +
"</head>" + 
"<body>" + 
"<table width='100%' height='56' border='0' cellspacing='0' cellpadding='0' style='background:url(_img/bg_popup.jpg);'>" +
"  <tr>" +
"    <td align='left' style='padding:0px 0px 0px 20px;'><img src='_img/popup_logo.gif' /></td>" +
"    <td align='right' style='padding:0px 20px 0px 0px;'><a href='javascript:self.close()'><img src='_img/popup_fechar.gif' /></a></td>" +
"  </tr>" +
"</table>" +
"" +
"<div align='center'><img src='_img/" + foto + "'></div>" +
"" +
"</body>" +
"</html>"

// fim da geração do conteúdo html
newin.document.open()

// imprime conteúdo gerado
newin.document.write(arquivo)
newin.document.close()
newin.focus()
} 
