// JavaScript Document
function PopupCenter(pageURL, title,w,h) {
var left = (screen.width/2)-(w/2);
var top = (screen.height/2)-(h/2);
var targetWin = window.open (pageURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
} 

function open_wnd(url,winName,breite,hoehe,props){
//javascript:open_wnd('url.html','fenster',100,100,'resizable=yes')
var wnd;
if (!winName){winName = "openwnd";}
var props='';
if (props==''){winProperties="status=no,menubar=no,resizable=no,directories=no,locationbar=no,scrollbars=yes";}
else winProperties=props;

winProperties+=",width=" + breite + ",height=" + hoehe;

if(wnd){
	if(wnd.closed)
		wnd  = null
	else
		wnd.close();
}
wnd=window.open(url, winName, winProperties);
wnd.focus();
}
