<!--


// stellt die Bildschirmabmessungen fest
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;
popUp1=window.open(url,'win1','width='+ w +',height='+ h +',left=' + x +',top='+ y +',directories=0,status=0,scrollbars='+s +',resizable='+ r + ',menubar=0,locationbar=0')
}

// 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>
function popwin2(url,w,h)
{
x=screen.width/2;
x=x-w/2;
y=20;
popUp2=window.open(url,'win2','width='+ w +',height='+ h +',left=' + x +',top='+ y +',directories=0,status=0,scrollbars=1,resizable=1,menubar=0,locationbar=0')
}


// Fensterposition horizontal mitte, vertical mitte
// uebergabe url , breite , hoehe
// aufruf: <a href="javascript: popwin3('dateiname.htm','700','450')">link</a>
function popwin3(url,w,h)
{
x=screen.width/2;
x=x-w/2;
y=screen.height/2;
y=y-h/2;
popUp3=window.open(url,'win3','width='+ w +',height='+ h +',left=' + x +',top='+ y +',directories=1,status=1,scrollbars=1,resizable=1,menubar=1,locationbar=1')
}

// Fensterposition horizontal mitte, vertical mitte
// uebergabe url , breite , hoehe
// aufruf: <a href="javascript: popwin4('dateiname.htm','700','450')">link</a>
function popwin4(url,w,h)
{
x=screen.width/2;
x=x-w/2;
y=screen.height/2;
y=y-h/2;
popUp4=window.open(url,'win4','width='+ w +',height='+ h +',left=' + x +',top='+ y +',directories=0,status=0,scrollbars=0,resizable=0,menubar=1,locationbar=1')
}

// 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,'win5','width='+ w +',height='+ h +',left=' + x +',top='+ y +',directories=0,status=0,scrollbars=1,resizable=0,menubar=1,locationbar=0')
}




// 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();
}
}



// 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();
}


function closeback() {
// 1. prüfen ob die Seite überhaupt in einem Frameset aufgerufen wird
if (parent.frames.length == 0)
{
document.write("<a href='javascript:history.go(-1)'><img src='../images/b-back.gif' width='35' height='22' border='0' alt='eine Seite zurück'></a>")
}
else
{
document.write("<a href='javascript:window.self.close()'><img src='../images/b-close-text.gif' width='59' height='22' border='0' alt='eine Seite zurück'></a>")
}
return
}


function ebene2back() {
// 1. prüfen ob die Seite überhaupt in einem Frameset aufgerufen wird
if (parent.frames.length == 0)
top.location.href = "../index.htm";
else
{
// 2. prüfen ob es auch mein Frameset ist
if(top.frames[0].name == "nav0")
{
document.write("<a href='javascript:history.go(-1)'><img src='../images/b-back.gif' width='35' height='22' border='0' alt='eine Seite zurück'></a>")
}
else
top.location.href = "../index.htm"
}
return
}


function ebene3back() {
// 1. prüfen ob die Seite überhaupt in einem Frameset aufgerufen wird
if (parent.frames.length == 0)
top.location.href = "../../index.htm";
else
{
// 2. prüfen ob es auch mein Frameset ist
if(top.frames[0].name == "nav0")
{
document.write("<a href='javascript:history.go(-1)'><img src='../../images/b-back.gif' width='35' height='22' border='0' alt='eine Seite zurück'></a>")
}
else
top.location.href = "../../index.htm"
}
return
}


function quelltext() {
window.location = 'view-source:' + window.location.href;
return
}

function quelltext2(datei) {
window.location = 'view-source:' + datei;
return
}


function printWindow() {
Browser = parseInt(navigator.appVersion);
if (Browser >= 4) window.print();
}


function lastupdate() {
// wochentage
var wochentag = new
Array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag");

// monatsnamen
var monat = new Array("Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember");

today = new Date()
modifiziert = new Date(document.lastModified)
tageher = Math.ceil( (today.getTime()- modifiziert.getTime())/(24*60*60*1000) )

if(tageher == 1) {
wtag = " Tag"
} else {
wtag = " Tagen"
}
var then = new Date(document.lastModified);
document.writeln("update: "+ wochentag[then.getDay()] + " " + then.getDate() + ". " + monat[then.getMonth()]  + ",  vor " + tageher +  wtag + "!")
return
}

//-->