function popup (url, title, focus, options)
{
	var stdoptions = {
		width:300,
		height:200,
		resizable:0,
		status:'no',
		scrollbars:0,
		toolbar:0,
		location:0,
		directories:0,
		menubar:0
	}
	
	for (var i in options) {
		stdoptions[i] = options[i];
	}
	var params = ""
	var c = 0;
	for (var i in stdoptions)
	{		
		params += (c?",":"") + i +"="+stdoptions[i];
		++c;
	}
			
	var w = window.open (url, title, params);
	if (!w) return true;
	if (focus) w.focus();
	return false;	
}


function open640400 (url, scrollbar) {
	return popup (url, "popup", true, {width:640, height:400, scrollbars:scrollbar});
}
function openhelp (){
	popup ("hilfe_uebersicht.htm", "popup_help", true, {width:640, height:450, scrollbars:"no"});
}
function openhelpfile (){
	popup ("../download/wdb_help_flyer.pdf", "popup_help", true, {width:1024, height:768, scrollbars:"yes", toolbar:"no", location:"no", status:"yes", menubar:1, resizable:1 } );
}