function RemoveScrollBars()
{
	if(document.body.scroll != null)
	{
		document.body.scroll = "auto";
		document.body.style.overflowX = "hidden"; // hidden | scroll | auto
		document.body.style.overflowY = "auto";
	}
	else // #### MG: It's a different Browser (NN)
	{
		document.body.attributes("-moz-scrollbars-horizontal") = "scroll";
		document.body.attributes("-moz-scrollbars-vertical") = "no";
	}
}

function OpenCustomPopUpApp(base, url, width, height, resizable, location, menubar, scrollbars, status, titlebar, toolbar, undesigned)
{
	var basePage = "PopupDesigned.aspx";
	var scrolling = scrollbars;
	scrollbars = false;
	
	if(undesigned == null)
	{
		undesigned = false;
	}
	
	if(undesigned)
	{
		basePage = "PopupUndesigned.aspx";
	}
	
	var path = base + basePage + "?url=" + escape(url) + "&height=" + height + "&undesigned=" + undesigned + "&scrollbars=" + scrolling;
	var options = "width=" + width + ", height=" + height + ", resizable=" + (resizable ? 1 : 0) + ", location=" + (location ? 1 : 0) + ", menubar=" + (menubar ? 1 : 0) + ", scrollbars=" + (scrollbars ? 1 : 0) + ", status=" + (status ? 1 : 0) + ", titlebar=" + (titlebar ? 1 : 0) + ", toolbar=" + (toolbar ? 1 : 0);
	var win = window.open(path, "PopUp", options);
	
	if(win != null)
	{
		win.focus();
	}
}

function Druckansicht(url)
{

        urlToPrint = window.location.href;
        urlToPrint = urlToPrint.replace(/&/g,"HEX26");
		
		// Abfangen von Attributen aus Weiterleitungslinks (wg. fehlender Bilder)
		var intSuche = urlToPrint.indexOf("navsrc");
		if (intSuche >= 1) {
			urlToPrint = urlToPrint.substr(0,intSuche);
		}
		
        var host = "http://" + window.location.host;
		if (host.indexOf("webredaktion") > -1) {
			host = "https://webredaktion.eon-energie.com/vip/ETEInternet_edit/pages";			 
		}
		phpurl = host + "/_GeneratePrintVersion.php?URL=" + urlToPrint;
        druck=window.open(phpurl, 'Druckversion', 'width=665, height=768');
        return;
} 

