<!--


// 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,statusbar=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,statusbar=0,menubar=0,locationbar=0,scrollbars=1,resizable=1')
}


// 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=0,statusbar=0,scrollbars=0,resizable=1,menubar=0,locationbar=0')
}

// 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,statusbar=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,statusbar=0,scrollbars=1,resizable=1,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 eigenschaften,sbreite,shoehe,fenster,b,h;

// stellt die Bildschirmabmessungen fest
// find window size
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,statusbar=0";

fenster=window.open("","",eigenschaften);
fenster.focus();
fenster.document.open();
with (fenster) {
  document.write("<html><head>");
  // geändert 2004 für Mozilla
  document.write('<scr' + 'ipt type="text/javascr' + 'ipt" language="JavaScr' + 'ipt">');
  // bei click  schliessen , on click close
  document.write("function click() { window.close(); } ");
  document.write("document.onmousedown=click ");
  // geändert 2004 für Mozilla
  document.write('</scr' + 'ipt>');
  document.write("<title>klick to close</title></head>");
  // bei Focusverlust schliessen, close if window looses focus
  // Zeile geändert Aug 2003 (Dreamweaver machte Probleme)
  document.write("<" + "body onblur='window.close()';");
  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>


// www.web-toolbox.net , W. Jansen
// Übergabeparameter: bildquelle,breite,höhe,bildtitel
// hand over parameters: imagesource,width,height,title

function ViewImage02(bildurl,b,h,bildtitel)
{
var eigenschaften,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=0,locationbar=0,toolbar=0,directories=0,statusbar=0";

fenster=window.open("","",eigenschaften);
fenster.focus();
fenster.document.open();
with (fenster) {
  document.write('<html><head>');
  // geändert 2004 für Mozilla
  document.write('<scr' + 'ipt type="text/javascr' + 'ipt" language="JavaScr' + 'ipt">');
  document.write("function click() { window.close(); } ");  // bei click  schliessen
  document.write("document.onmousedown=click ");
  // geändert 2004 für Mozilla
  document.write('</scr' + 'ipt>');
  document.write('<title>'+ bildtitel +'</title></head>');
  // Zeile geändert Aug 2003 (Dreamweaver machte Probleme)
  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 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
}



function fullScreen(URL) {
window.open(URL, 'misk', 'fullscreen=yes, scrollbars=no');
}


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()' marginwidth='0' marginheight='0' leftmargin='0' topmargin='0'>" );// bei Focusverlust schliessen
  document.write("<center>");
  document.write("<img src='"+ bildurl +"'border='0'>");
  document.write("<center>");
  document.write("</body></html>");
  fenster.document.close();
}
}

function fullScreen(URL) {
window.open(URL, 'misk', 'fullscreen=yes, scrollbars=no');
}


function MapWindow(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)/4;
y = 600;

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()' marginwidth='0' marginheight='0' leftmargin='0' topmargin='0'>" );// bei Focusverlust schliessen
  document.write("<center>");
  document.write("<img src='"+ bildurl +"'border='0'>");
  document.write("<center>");
  document.write("</body></html>");
  fenster.document.close();
}
}