function Popup(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
while (myname.search(/-/) != -1) {
	myname = myname.replace(/-/,"_");
}
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',location=yes,scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

/* AUFRUF: */

/* <a href="Seite.html" onclick="Popup(this.href,'Titel','775','575','yes');return false;">Klicken</a> */

/* fenster versetzt zum mit Popup geoeffneten fenster oeffnen */
function Popup2(mypage, myname, w, h, scroll, v) {
var winl = (screen.width - w) / 2 - v;
var wint = (screen.height - h) / 2 - v;
while (myname.search(/-/) != -1) {
	myname = myname.replace(/-/,"_");
}
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',location=yes,scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function Popup3(mypage, myname, w, h) {
var weite;
var hoehe; 
if (w > screen.width) weite = screen.width;
if (h > screen.height) hoehe = screen.height;
winprops = 'height='+h+',width='+w+',top=0,left=0,scrollbars=yes,toolbar=yes,locationbar=yes,location=yes,resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

