

// GbPro-ScriptFunctions

function OpenWin(URL)	
{oWindow=window.open(URL, '','toolbar=no,height=650, width=560,status=no,scrollbars=yes,resize=yes,menubar=no');}


function EScript(text1, text2, text3)
{document.write('<a href="' + 'mailto:' + text1 + '@' + text2 + '.' + text3 + '">'+ text1 + '@' + text2 + '.' + text3 + '	</a>');}






// window ohne scrollbar
// Fensterposition horizontal 10, vertical 10
// uebergabe url , breite , hoehe
// aufruf: <a href="javascript: popwin4('dateiname.htm','700','450')">link</a>
function popwin4(url,w,h)
{
x=10;
y=10;
popUp4=window.open(url,'win4','width='+ w +',height='+ h +',left=' + x +',top='+ y +',directories=0,status=0,scrollbars=0,resizable=1,menubar=1,locationbar=1')
}



// window mit scrollbar und menüleiste
// Fensterposition 10, 10
// uebergabe url , breite , hoehe
// aufruf: <a href="javascript: popwin5('dateiname.htm','700','450')">link</a>
function popwin5(url,w,h) {
x=10;
y=10;
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')
}



// 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 quelltext() {
window.location = 'view-source:' + window.location.href;
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
}

