function showRezepte(){
	openRezeptideen('popup',
					'../../rezeptideen/',
					1024,600)
}


function openRezeptideen(name, m_url, breite, hoehe){
	/*var url = "lupe.php?typ=eiskartenbeispiel&file=" + name; */
	var menu = 0;
	var doscroll = "yes";
	openPopup(m_url, breite, hoehe, doscroll, menu);
} 
 
function openPopup (url, breite, hoehe, doscroll, menu){
		/*if (win != null && !win.closed) win.window.close();*/
		
		var windowLeft = (screen.width-breite) / 2;
		var windowTop = (screen.height-hoehe) / 2;
		
		if (menu) {
			menu		= 'yes';
			menu_zahl	= 1;
			resizable	= 'yes';
		} else {
			menu		= 'no';
			menu_zahl	= 0;
			resizable	= 'no';
		}
		
		fe = "resizable="+resizable+",toolbar="+menu+",scrollbars="+doscroll+",status="+menu_zahl+",top="+windowTop+",left="+windowLeft+",";
		fe+= "directories="+menu_zahl+",menubar="+menu_zahl+",location="+menu_zahl+",width="+breite+",height="+hoehe;

		win = window.open(url, "popup", fe);
		if (win) win.focus();
}

function showNaehrwerte(bereich_id, pos) {
		fe = "resizable=no,toolbar=no,scrollbars=yes,status=yes,";
		fe += "directories=no,menubar=no,location=no,width=575,height=600";

		winNaehrwerte = window.open(docroot+'/unser_eis/naehrwerte/bereich_id:'+bereich_id+'/pos:'+pos+'/#'+bereich_id+'_'+pos,"popup",fe);
		if (winNaehrwerte) winNaehrwerte.focus();
}