function makePicwin(url, myWidth, myHeight, caption) {
  var win;
  var windowName;
  var params;
  windowName  = "PictureWindow";
  params = "toolbar=0,";
  params += "location=0,";
  params += "directories=0,";
  params += "status=0,";
  params += "menubar=0,";
  params += "scrollbars=0,";
  params += "resizable=0,";
  params += "top=" +((screen.height-myHeight)/2)+ ",";
  params += "left=" +((screen.width-myWidth)/2)+ ",";
  params += "width="+ myWidth+",";
  params += "height="+ myHeight;

  var wcontent = "<HTML><HEAD><TITLE>" +caption+ "</TITLE></HEAD>";
  wcontent += "<BODY BACKGROUNG='../images/fundo geral 2.jpg'>";
  wcontent += "<center><h3><b>" +caption+ "</b></h3></center>";
  wcontent += "<center><img src='" +url+ "' border=0 height='" + (myHeight-25) + "' width='" + (myWidth-18) + "'></center>";
  wcontent += "</BODY></HTML>";

  win = window.open('', windowName, params);
  win.document.write(wcontent);
}
