function ChangeTitle(title)
{
	CheckForFrameset();
	if(self.parent != null)
	{
		self.parent.document.title = title;
	}
}

function CheckForFrameset()
{
	if(navigator.platform.indexOf("Mac") == -1)
	{
		if(self.frameElement == null)
		{
			if(self.location.href.indexOf("Content.aspx") > -1 && self.location.href.indexOf("noframes=true") == -1 && self.location.href.indexOf("editcontrol=") == -1)
			{
				self.location = self.location.href.replace(/Content.aspx/, "Framework.aspx");
			}
		}
	}
}

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(url, width, height, resizable, location, menubar, scrollbars, status, titlebar, toolbar)
{
	//var path = "Apps/PopUps/Framework.aspx?url=" + escape(url);
	var path = url;
	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);
	win.focus();
}

function lexicon_succ(which)
{
	open(which,"Lexikon","width=592,height=431,resizeable=No,screenX=10,screenY=10,location=no,menubar=no");
}

