//globale Variablen für Fensterfunktionen
var imgFensterOffen=false;

function ladeIndex(IndexURL)
{
	if(top.frames.length <= 0)
	top.location=IndexURL;
}
	
function ladeSeite(Verweisziel)
{
	if (!document.images) return true;
	if (opener)
		{
		opener.location.href=Verweisziel;
		opener.focus()
		self.close();
		}
	return true;
}

function fensterSchliessen()
{
	if (opener)
		{
		window.close();
		}
}

function imgFensterSchliessen()
{
	if (opener)
		{
		imgFensterOffen=false;
		window.close();
		}
}

function popupTeam(startseite)
{
	if (document.images)
	{
	if (window.screen) vonlinks=window.screen.width-430;else vonlinks=200;
	F=window.open(startseite,'TeamFenster','height=540,width=420,scrollbars=1,left='+vonlinks+',top=0');
	F.focus();
	}
}
//	---------------------------------------------------------------------------

function popupimg(bild,b,h,scrl,oben,maustext)
// greift ggf. auf globale Variable am Skriptanfang zu
{
	if (document.images)
	{
		if (window.screen) vonlinks=window.screen.width-b-10;else vonlinks=200;
		if (imgFensterOffen==false)
		{
		imgwin=window.open('about:blank','popupimg','width='+b+',height='+h+',scrollbars='+scrl+',left='+vonlinks+',top='+oben+'');
		imgFensterOffen=true;
		imgwin.focus();
		imgwin.document.write('<html>\n');
		imgwin.document.write('<head>\n<title>www.charite.de/imh</title>\n<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\n</head>\n');
		imgwin.document.write('<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">\n');
		imgwin.document.write('<a href="javascript:window.close()"><img src="'+bild+'" width="'+b+'" height="'+h+'" border="0" alt="'+maustext+'"></a>\n');
		imgwin.document.write('</body>\n</html>');
		imgwin.focus();
		}
		if (imgFensterOffen==true)
		{
		imgwin.close();
		imgwin=window.open('about:blank','popupimg','width='+b+',height='+h+',scrollbars='+scrl+',left='+vonlinks+',top='+oben+'');
		imgwin.focus();
		imgwin.document.write('<html>\n');
		imgwin.document.write('<head>\n<title>www.charite.de/imh</title>\n<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\n</head>\n');
		imgwin.document.write('<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">\n');
		imgwin.document.write('<a href="javascript:window.close()"><img src="'+bild+'" width="'+b+'" height="'+h+'" border="0" alt="'+maustext+'"></a>\n');
		imgwin.document.write('</body>\n</html>');
		imgwin.focus();
		}
	}
}

