
/*   
     i m a g e m a p f e n s t e r . j s 
     (C) Michael Obach, 25.2.2002
     Erzeuge ein eigenes Fenster für Grafiken und Fotos, allerdings mit einem Imagemap
     History:
     25.02.2002: von bildfenster.js geklont und angepasst
*/

var width,height
var image,ext
var cond1,cond2,vscroll
  function Imagemap_zeigen(dateiname,width,height,optionen)
  {
/*
   width = width + 30;
   height = height + 30;
   MeinFenster =
   window.open(dateiname, "Abstract", "width="+width+","+"height="+height+",menubar=no,resizable=yes");
   MeinFenster.focus();
   MeinFenster.resizeTo(width,height);
*/
/*   MeinFenster.resizeTo(width+60,height+60); */
/*   MeinFenster.innerHeight = height; */

/*   MeinFenster.focus(); */


        if (width==0) cond1=" "
                else cond1="width="+(width+20)+"";
        if (height==0) {cond2=" "
                        vscroll="yes"}
                else {cond2="height="+(height+80)+""
                      vscroll="no"};

        var s1 ="<TITLE>Bild</TITLE><BODY BGCOLOR=#000000><map name='Testbild'>"
        var s2 ="</map><CENTER><IMG usemap='#Testbild' SRC="+dateiname+" BORDER=0><p>"
        var s3 ="<FORM><INPUT TYPE='BUTTON' VALUE='Close window / Fenster schliessen'"+
                " onClick='self.close()'>"
        var s4 ="</FORM></CENTER></BODY>"
        var s5 =optionen	

        ImageWindow=window.open("", "newwin"+width,
"toolbar=no,scrollbars="+vscroll+",menubar=no,"+cond1+","+cond2);
        ImageWindow.document.write(s1+s5+s2+s3+s4)
        ImageWindow.document.close()


  }





