
function NF(datei,b,h,nr){b=b+30;h=h+40;
F=new Array();
LP=(screen.width) ? (screen.width-b-30)/2 : 0;
TP=(screen.height) ? (screen.height-h-40)/2 : 0;
F[nr]=window.open(datei,"f"+nr,"width="+b+",height="+h+",scrollbars=no,left="+LP+",top="+TP);
F[nr].focus();
F[nr].resizeTo(b+10,h+60);}

function ch1(x){var yy=2;var z=0;var xx="";for(var y=0;y<x.length;y++){z=x.charCodeAt(y);xx+=String.fromCharCode(z-yy);}return xx;}
function mail(x){location.href=ch1(x);}

function NF2(bildurl,b,h,bildtitel)
{
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 = "nein";  // "ja" oder "nein" eintragen
VonLinks = 20;
VonOben = 20;

if(FestePosition == "ja") {
x = VonLinks;
y = VonOben;
} else {

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;
//shoehe = document.documentElement.clientHeight;
}

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,location=no,status=no,scrollbars=no";

fenster=window.open("","",eigenschaften);
fenster.focus();
fenster.document.open();
with (fenster) {
  document.write('<html><head>');
  document.write('<scr' + 'ipt type="text/javascr' + 'ipt" language="JavaScr' + 'ipt">');
  document.write("function click() { window.close(); } ");
  document.write("document.onmousedown=click ");
  document.write('</scr' + 'ipt>');
  document.write('<title>'+ bildtitel +'</title></head>');
  
  document.write('<' + 'body onblur="window.close();" ');
  document.write('style="padding:5px;margin:5px;">');
  document.write('<img src="'+ bildurl +'"border="0">');
  document.write('</body></html>');
  fenster.document.close();
}
}
