
function openImageWindow(imgPath,winWidth,winHeight,winTitle){
  myWidth = winWidth + 20;
  myHeight = winHeight + 25;

  myWindow=open("","","width="+myWidth+",height="+myHeight,"resizable=yes","scrollbars=yes","toolbar=no","location=no","directories=no","status=no","menubar=no");
  myWindow.focus();
  myWindow.document.write("<html>\n<head><title>"+winTitle+"</title></head>\n<body>\n");
  myWindow.document.write ("<img src=\""+imgPath+"\" title=\"cliquez pour fermer la fenêtre\" onClick=\"window.close();\">\n");
  myWindow.document.write ("</body></html>");
  myWindow.document.close();
}
