
function dimension() {
var ns6 = (!document.all && document.getElementById);
var ie4 = (document.all);
var ns4 = (document.layers);
if(ns6||ns4) {
breite = innerWidth;
hoehe = innerHeight;
}
else if(ie4) {
breite = document.body.clientWidth;
hoehe = document.body.clientHeight;
}
return
}


// Fensterposition horizontal: mitte, vertical mitte
// uebergabe url , breite , hoehe , scroll ja/nein , groesse aendern ja/nein
// 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')
popUp.focus();
}

function popwin2(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=1,locationbar=0')
popUp.focus();
}

// Fensterposition horizontal mitte, vertical 20 pixel von links
// nur scroll ja,  groesse aendern ja
// uebergabe url , breite , hoehe
// aufruf: <a href="javascript: popwin2('dateiname.htm','700','450')">link</a>


// Fensterposition x-pos y-pos
// uebergabe url , breite , hoehe
// aufruf: <a href="javascript: popwin5('dateiname.htm','700','450')">link</a>
function popwin5(url,w,h) {
dimension()

x=(breite - w)-40 ;
y=(hoehe - hoehe) +40


popUp=window.open(url,'win','width='+ w +',height='+ h +',left=' + x +',top='+ y +',directories=0,status=0,scrollbars=1,resizable=1,menubar=0,locationbar=1')
popUp.focus();
}



// www.web-toolbox.net , W. Jansen
// Als Übergabeparameter wird die bildquelle,breite und höhe übergeben
function FotoWindow(bildurl,b,h)
{
var eigenschaft,sbreite,shoehe,fenster,b,h;

// stellt die Bildschirmabmessungen fest
var ns6 = (!document.all && document.getElementById);
var ie4 = (document.all);
var ns4 = (document.layers);

if(ns6||ns4) {
sbreite = innerWidth;
shoehe = innerHeight;
}
else if(ie4) {
sbreite = document.body.clientWidth;
shoehe = document.body.clientHeight;
}

x = (sbreite-b)/2;
y = (shoehe-h)/2;

eigenschaften="left="+x+",top="+y+",screenX="+x+",screenY="+y+",width="+b+",height="+h+",menubar=no,toolbar=no";

fenster=window.open("","",eigenschaften);
fenster.focus();
fenster.document.open();
with (fenster) {
  document.write('<html><head>');
  document.write("<script type='text/javascript' language='JavaScript'>");
  document.write("function click() { window.close(); } ");  // bei click  schliessen
  document.write("document.onmousedown=click ");
  document.write("</script>");
  document.write('<title>klick to close</title></head>');
  document.write('<body onblur="window.close()" '); // bei Focusverlust schliessen
  document.write('marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">');
  document.write('<center>');
  document.write('<img src="'+ bildurl +'"border="0">');
  document.write('<center>');
  document.write('</body></html>');
  fenster.document.close();
}
}



function lastupdate() {
modifiziert = new Date(document.lastModified);
document.writeln("aktualisiert am&nbsp; " + modifiziert.getDate() + "." + (modifiziert.getMonth() + 1) + "." + modifiziert.getFullYear() );
return
}
