<!--
// www.web-toolbox.net , W. Jansen

function BildFenster02(bildurl,b,h)
{
var eigenschaften,sbreite,shoehe,fenster,b,h;




// wenn eine feste Position für die Anzeige gewünscht wird
// dann für die Variable 'FestePosition' ein "ja" eintragen
// und die X- / Y-Werte (linke obere Ecke) hier eintragen

var FestePosition = "ja";  // "ja" oder "nein" eintragen
VonLinks = 20;
VonOben = 20;

if(FestePosition == "nein") {
x = VonLinks;
y = VonOben;

} else {


// stellt die Bildschirmabmessungen fest
// maximal verfuegbare Bildschirmgroesse in Pixeln
sbreite = screen.availWidth;
shoehe = screen.availHeight;

x = parseInt((sbreite-b)/2);
y = parseInt((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>zum Schlie&szlig;en in das Bild klicken</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("<img src='"+ bildurl +"' border='0'>");
  document.write("</body></html>");
  fenster.document.close();
}
}
//-->


<!-- 
//
// format date as dd-mmm-yy
// example: 12-Jan-99
//
function date_ddmmmyy(date)
{
  var d = date.getDate();
  var m = date.getMonth() + 1;
  var y = date.getYear();

  // handle different year values 
  // returned by IE and NS in 
  // the year 2000.
  if(y >= 2000)
  {
    y -= 2000;
  }
  if(y >= 100)
  {
    y -= 100;
  }

  // could use splitString() here 
  // but the following method is 
  // more compatible
  var mmm = 
    ( 1==m)?'01':( 2==m)?'02':(3==m)?'03':
    ( 4==m)?'04':( 5==m)?'05':(6==m)?'06':
    ( 7==m)?'07':( 8==m)?'08':(9==m)?'09':
    (10==m)?'10':(11==m)?'11':'12';

  return "" +
    (d<10?"0"+d:d) + "." +
    mmm + "." +
    (y<10?"0"+y:y);
}


//
// get last modified date of the 
// current document.
//
function date_lastmodified()
{
  var lmd = document.lastModified;
  var s   = "Unknown";
  var d1;

  // check if we have a valid date
  // before proceeding
  if(0 != (d1=Date.parse(lmd)))
  {
    s = "" + date_ddmmmyy(new Date(d1));
  }

  return s;
}

//
// finally display the last modified date
// as DD-MMM-YY
//
//document.write( 
//"Stand " + 
//date_lastmodified() );

// -->


function FensterOeffnen (Adresse) {
 MeinFenster = window.open(Adresse, "Zweitfenster", "width=300,height=550,left=100,top=200,scrollbars=yes");
 MeinFenster.focus();
}
