function popup_world() {
        var zusatz = "toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no" ;
        window.open ( "http://apps.eon-energie.com/world/main.html" , "eon_world" , "width=790,height=455,"+zusatz);
}
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(lang)
{
        urlToPrint = window.location.href;
        urlToPrint = urlToPrint.replace(/&/g, 'HEX26');
    
        //phpurl = "http://www.eon-bulgaria-grid.com/_GeneratePrintVersion.php?URL=" + urlToPrint + "&lang=" + lang;
        //phpurl = /*VIPURL*/"../_GeneratePrintVersion.php?URL=" + urlToPrint + "&lang=" + lang;
        //phpurl = "https://webredaktion.eon-energie.com/vip/InternetEBG_GRD_edit/pages/_GeneratePrintVersion.php?URL=" + urlToPrint + "&lang=" + lang;
        phpurl = "http://www.eon-bulgaria-grid.com/_GeneratePrintVersion.php?URL=" + urlToPrint + "&lang=" + lang;
        
        druck = window.open(phpurl, 'Druckversion', 'width=620, height=768');
        return;
} 
