function openresolWin(fullimage,resolwidth,resolhigh,linkpoeme) {
	
  // alert(linkpoeme);
  
  if ((resolwidth < screen.availWidth)||(resolhigh < screen.availHeigh)) {
    var decalx=0;
    var decaly=0;
    var addbordx = 35;
    var addbordy = 55;
    var resolw=resolwidth;
    var resolh=resolhigh;
    myWin= open('', 'displayWindow','width='+resolwidth+',height='+resolhigh+',status=no,toolbar=no,menubar=no,titlebar=no');

  }
  else {
    var decalx=-15;
    var decaly=-39;
    var addbordx = 36;
    var addbordy = 88;
    var resolw=screen.availWidth;
    var resolh=screen.availHeight;
    myWin= open('', 'displayWindow','width='+resolw+',height='+resolh+',status=no,toolbar=no,menubar=no,titlebar=no,scrollbars=yes');
  }

  // open document for further output
  myWin.document.open();

  // create document
  myWin.document.write('<html><head><title>pleine image : '+fullimage+'</title>');
  myWin.document.writeln('<style type="text/css">');
  myWin.document.writeln('<!--');
  myWin.document.writeln('body,td {font-family:arial,helvetica,tachoma,verdana,sans-serif; font-size:12pt; color:#000000; font-style:normal}');
  myWin.document.writeln('-->');
  myWin.document.writeln('</style>');
  myWin.document.writeln('<SCRIPT language="JavaScript">');
  myWin.document.writeln('self.moveTo('+decalx+','+decaly+')');
  myWin.document.writeln('self.resizeTo('+resolw+'+'+addbordx+','+resolh+'+'+addbordy+')');
  if (linkpoeme != "") {
	myWin.document.writeln('<!--');
    myWin.document.writeln('function popoeme(urlpoeme) {');
    myWin.document.writeln('powin = open(urlpoeme, "poeme","width=600,height=600,status=no,toolbar=no,menubar=no,titlebar=no,scrollbars=yes")');
    myWin.document.writeln('}');
	myWin.document.writeln('-->');
  }
  myWin.document.writeln('</SCRIPT>');
  myWin.document.writeln('</head><body bgcolor="#ffffff">');
  myWin.document.writeln('<center><table border=0 width=100% height=100%><tr><td align=center valign=middle>');
  myWin.document.writeln('<img src="'+fullimage+'" border=0 onDblClick="window.close()" alt="DblClick : Close">');
  if (linkpoeme != "") {
  	myWin.document.writeln('<p><a href="javascript:popoeme('+"'poemes/"+linkpoeme+'.html'+"'"+')">'+linkpoeme+'</a>');
  }
  myWin.document.writeln("<p><p><font size=1>Double-cliquer sur l'image pour la fermer, SVP</font>");
  myWin.document.writeln('</td></tr></table></center>');
  myWin.document.writeln('</body></html>');

  // close the document - (not the window!)
  myWin.document.close();
}
