var webkr_popup_handler;
var webkr_popup_latency=500;
function webkr_popup_bitch() {
	alert("Offenbar konnte kein Fenster geöffnet werden. Wahrscheinlich ist die Konfiguration Ihres PCs fehlerhaft, z.B. installierter Popup-Blocker.");	
}
function webkr_popup_check(handler) {
	if (!handler) {
		webkr_popup_bitch();
	} else {
		if (handler.closed) {
			webkr_popup_bitch();
		}
	}		
}
function webkr_popup(url,name,x,y,w,h,resizable,scrollbars,menubar,toolbar,locationbar,statusbar) {
	properties="";
	if (x!=0) properties+="left="+x+", ";
	if (y!=0) properties+="top="+y+", ";
	if (w!=0) properties+="width="+w+", ";
	if (h!=0) properties+="height="+h+", ";
	properties+=("resizable="+((resizable==true)?"yes, ":"no, "));
	properties+=("scrollbars="+((scrollbars==true)?"yes, ":"no, "));
	properties+=("menubar="+((menubar==true)?"yes, ":"no, "));
	properties+=("toolbar="+((toolbar==true)?"yes, ":"no, "));
	properties+=("location="+((locationbar==true)?"yes, ":"no, "));
	properties+=("status="+((statusbar==true)?"yes":"no")); // Kein Komma!
	webkr_popup_handler=window.open(url,name,properties);
	window.setTimeout("webkr_popup_check(webkr_popup_handler)",500);
	return webkr_popup_handler;
}
