function open_function(url, width, height, options)
{
	self.msgWindow = open(url, "Window", "width=" + width + ",height=" + height
	+ ",screenX=" + (screen.width-width) / 2
	+ ",screenY=" + (screen.height-height) / 2
	+ ",dependent=yes"
	+ ",left=" + (screen.width-width) / 2
	+ ",top=" + (screen.height-height) / 2
	+ options);
	if (self.msgWindow)
	{
		self.msgWindow.focus();
		if (self.msgWindow.opener == null)
		{
			self.msgWindow.opener = self;
		}
	}
}

function toggleDisplay(theID)
{
	el = document.getElementById(theID);
	var display = el.style.display ? '' : 'none';
	el.style.display = display;
}

function send2friend(titel, url)
{

	window.open('/portal/content/ir/send2friend.aspx?titel='+titel+'&url='+url, 'send2friend', 'width=680,height=550,resizable=yes,screenX='+((screen.width-680) / 2)+',screenY='+((screen.height-550) / 2)+',dependent=yes');

}

if (navigator.appName == 'Microsoft Internet Explorer' &&  navigator.appVersion.indexOf("MSIE 5") != -1)
{
	document.write('<style type="text/css">');
	document.write('#bodyContent td { font-size:75% }');
	document.write('#bodyContent th { font-size:75% }');
	document.write('div.msieContainment { width:100% }');
	document.write('div#bodyContentContainer { width:100%; }');
 	document.write('</style>');
}

function picpopup(img, imgwidth, imgheight)
{
	var maxwidth = screen.availWidth - 20;
	var maxheight = screen.availHeight - 40;
	var width = parseInt(imgwidth) + 40;
	var height = parseInt(imgheight) + 40;
	if (width > maxwidth)
	{
		width = maxwidth;
	}
	if (height > maxheight)
	{
		height = maxheight;
	}
	props = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width='+width+',height='+height;
	window.open(img, 'nwb_grossbild', props);
}

function Popup(link,width,height)
{
	popup = window.open(link,'popup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=' + width +',height=' + height);
}