/*
+------------------------------------------------------------------------+
| ConPresso-Module "ImageSize"				                             |
+------------------------------------------------------------------------+
| Copyright (c) Markus Rösel http://www.conpresso4.de                    |
+------------------------------------------------------------------------+
| LICENSE INFO                                                           |
| This source file is subject to ConPresso license version 2002-11-16    |
| that is bundled with this package in the files LICENSE_EN.TXT or       |
| LICENSE_DE.TXT, and is available through the world-wide-web at         |
|     http://www.conpresso.de/license/LICENSE_EN-2002-11-16.TXT or       |
|     http://www.conpresso.de/license/LICENSE_DE-2002-11-16.TXT          |
|                                                                        |
| If you did not receive a copy of the ConPresso license and are unable  |
| to obtain it through the world-wide-web, please send a note to         |
| <license@conpresso.de> so we can e-mail you a copy immediately.        |
+------------------------------------------------------------------------+
| MODULE LICENSE                                                         |
| This souce file is also subject to the module license available        |
| through the world-wide-web at                                          |
|    http://www.conpresso4.de/_rubric/index.php?rubric=Lizenzbedingungen |
| It is NOT freeware and must not be redistributed!                      |
+------------------------------------------------------------------------+
| Authors: Markus Rösel <mods@50n.de>                                    |
+------------------------------------------------------------------------+

Release 4.3 / September 2010

*/

function ZoomImageFenster (Adresse,Breite,Hoehe,AltText) {
  ImageFenster = window.open('', "Zoomfenster", "width="+Breite+",height="+Hoehe);
  ImageFenster.focus();
  ImageFenster.document.open();
  with (ImageFenster) {
	  document.write("<html><head>");
	  document.write('<scr' + 'ipt type="text/javascr' + 'ipt" language="JavaScr' + 'ipt">');
	  document.write("function click() { window.close(); } ");
	  document.write("document.onmousedown=click ");
	  document.write('</scr' + 'ipt>');
	  document.write('<META HTTP-EQUIV="imagetoolbar" CONTENT="no">');
	  document.write("<title>Zoom Image</title><style>body { margin: 0; }</style></head>");
	  document.write("<" + "body onblur='window.close();'" + ">");
	  document.write("<img src='" + Adresse + "' border='0' alt='" + AltText + "'>");
	  document.write("</body></html>");
	  ImageFenster.document.close();
  }
}

