 //**************************************************
 //
 //   AEON Verlag & Studio
 //   Abt. Internet Solutions
 //   Hanau, Germany
 //   Copyright  22.10.04
 //   Autoren: Reinhold Gleisinger
 //
 //**************************************************

  var anzdyn = null;
  var NavTyp = navigator.appName.substring(0,3);   
  var NavVer = navigator.appVersion.substring(0,1);


 //*******************************************************
 //  function dispdyn(page, widt, heig, scro, tool, resi)
 //*******************************************************

  function dispdyn(page,widt,heig,scro,tool,resi) {

  var WinLay = "width="+widt+",height="+heig+",scrollbars="+scro+",toolbar="+tool+",resizable="+resi+"";

     if ((anzdyn) && (!anzdyn.closed))
         anzdyn.close();
     if (window.focus) {
       anzdyn = window.open(page,'dynwin',WinLay);
       if ((NavTyp == "Mic") && (NavVer < 5))
         setTimeout( "anzdyn.focus()", 200 );
       else
         anzdyn.focus();
     }
     else {
       anzdyn = window.open(page,'dynwin',WinLay);
     }
  }


 //*******************************************************
 //  function ViewImage
 //*******************************************************
var win;

  function ViewImage(ifile,ix,iy,ititle) { 
    var sWidth;
    var sHeight;
    var NS = (document.layers) ? 1 : 0;
  
    if ((win) && (!win.closed)) {
	if (NavTyp == "Net") {
	  sWidth = win.innerWidth;
	  sHeight = win.innerHeight;
	} else {
  	  sWidth = win.document.body.clientWidth;
	  sHeight = win.document.body.clientHeight;
	}
	if(sWidth!=ix || sHeight!=iy) {
	  win.close();
	}
  }

  win = window.open("","imageviewer","width="+ix+",height="+iy+",menubar=no,toolbar=no");
  if (!win) return;

  win.document.open();
  win.document.write("<html><head><title>"+ititle+"</title>");
  win.document.write("</head><body>");
  win.document.write('<div style="position:absolute;width:'+ix+'px;height:'+iy+'px;left:0px;top:0px">');
  win.document.write("<img src="+ifile+"></div></body></html>");
  win.document.close();


  if (window.focus) {
     win.focus();
  }
}




 //**************************
 //  function ende()
 //**************************

 function ende() {
   if ((anzdyn) && (!anzdyn.closed))
     anzdyn.close();
 }




