function _popup(url,img_h,img_v,caption,wc)
  {
      img_h_space  = 100;
      img_v_space  = 120;
      window_h     = parseInt(img_h) + img_h_space;
      window_v     = parseInt(img_v) + img_v_space;
      options      = 'toolbar=0' +
                     ',status=0' +
                     ',menubar=0' +
                     ',scrollbars=0' +
                     ',resizable=0' +
                     ',width=' + window_h +
                     ',height=' + window_v;
//      img_tag      = "<img src='"+url+"' width='"+img_h+"' height='"+img_v+"'>";
      img_tag      = "<img src='"+url+"'>";

      content      =
        "<html><head><title>Orlando Ribeiro</title>" +
        '<link rel="stylesheet" type="text/css" href="/files/or.css" /></head>' +
        "<body bgcolor='#ffffff'><center>" +
        img_tag + "<br clear=all>" + caption + "<br><br>" +
        "<a href='javascript:window.close()'><b>" + wc + "</b></a>" +
        "</center></body></html>";
   
      body = window.open("","",options);
      body.document.write(content);
      body.focus();
  }

function popup(url,img_h,img_v,caption)
{
	_popup(url,img_h,img_v,caption,"Fechar esta janela");
}

function popupfr(url,img_h,img_v,caption)
{
	_popup(url,img_h,img_v,caption,"Fermer cette fenêtre");
}

function popupen(url,img_h,img_v,caption)
{
	_popup(url,img_h,img_v,caption,"Close this window");
}

function popUp()
{
  newWin = window.open(this.href, this.target, this.settings);
  newWin.focus();
  return false;
}
