<!--


// aufruf: <a href="javascript: popwin1('dateiname.htm','700','450',1,1)">link</a>

function popwin1(url,w,h,s,r)
{
x=screen.width/2;
x=x-w/2;
y=screen.height/2;
y=y-h/2;
popUp=window.open(url,'win','width='+ w +',height='+ h +',left=' + x +',top='+ y +',directories=0,status=0,scrollbars='+s +',resizable='+ r + ',menubar=0,locationbar=0')
}



// window für bildanzeige passendes fenster
// uebergabe ifile = Dateiname , ix = Breite , iy = Höhe , ititle = Titelzeilentext
// aufruf: <a  href="javascript:ViewImage('bid.jpg',200,150,'Postamt')">link</a>

function ViewImage(ifile,ix,iy,ititle) {
var win;
var sWidth;
var sHeight;
var NS = (document.layers) ? 1 : 0;
win = window.open("","imageviewer","width="+ix+",height="+iy+",menubar=no,toolbar=no");
   if (NS) {
   sWidth = win.innerWidth;
   sHeight = win.innerHeight;
   } else {
   sWidth = win.document.body.clientWidth;
   sHeight = win.document.body.clientHeight;
   }
   if(sWidth!=ix || sHeight!=iy) {
   win.close();
   setTimeout("ViewImage('"+ifile+"',"+ix+","+iy+",'"+ititle+"')", 400);
   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();
}
//-->

