	function popupCentered(url, width, height )
	{
		popupCentered( url, width, height, '');
	}
	function popupCentered(url, width, height, options)
	{
		var left = (screen.width - width ) / 2;
		var top = (screen.height - height ) / 2;
		
		var options = "top=" + top + ",left=" + left + ",width=" + width + ",height=" + height + "," + options;
		window.open(url, 'popup', options);
	}
	//function BildPopup(psurl, ibreite, ihoehe, psname, bgoption)
	function BildPopup(psurl, ibreite, ihoehe)
	{
		sHTML = "<html><body bgcolor=#333333><center>";
		sHTML += "<img src='" + psurl + "' width='" + ibreite + "' height='" + ihoehe + "'><br>";
		sHTML += "</center></body></html>";
	
		openWindow(0, sHTML, 'Bildvergrösserung',  ibreite+30, ihoehe+80, true, false);

	}
	function show_poup(Adresse,iWidth, iHeight)
	{
		Fenster1 = window.open(Adresse, "Vergroesserung", "width=" + iWidth +",height=" + iHeight + ",left=100,top=200");
		Fenster1.focus();
	}
	function openWindow(SrcAdr, html_URL, MyTitel, Wwidth, Wheight, MitCloseButton, MitOhneScrol)
	{
   		var options
		if(MitOhneScrol)
		 	options = "toolbar=no,width=" + Wwidth + ",height=" + Wheight + ",directories=no,status=no,resize=yes,menubar=no,location=no,copyhistory=no,scrollbars=yes";
		else
			options = "toolbar=no,width=" + Wwidth + ",height=" + Wheight + ",directories=no,status=no,resize=yes,menubar=no,location=no,copyhistory=no,scrollbars=no";

		if(SrcAdr==1)
		{
			var newWin = window.open(html_URL, MyTitel, options);
		}
		else
		{
			html_URL = "<HTML><HEAD><TITLE>" + MyTitel + "</TITLE></HEAD>\n<BODY>\n" + html_URL;
			if(MitCloseButton)
			{
				html_URL += "<BR><CENTER><A HREF='#' onClick='window.close();return false;'><IMG SRC='http://www.elbook.de/shop/images/close.gif' BORDER=0></A></CENTER></BODY></HTML>";
			}
			else
			{
				html_URL += "</BODY></HTML>";
			}
			var newWin = window.open("", "_blank", options);		
   			var doc = newWin.document;
	   		doc.open();
   			doc.writeln(html_URL);
   			doc.close();
		}
	}


