function openWin(winURL,winName,winParam) {
  window.open(winURL,winName,winParam);
}

function film_popup(filmURL,titel,window_titel,width,height) {
  width=Number(width);
  // für Mozilla 8px mehr einplanen, da sonst Scrollbar erscheint
  if (! (IE4plus || IE5plus || IEmac)) 	height=Number(height)+8;
  else {
		height=Number(height);
		window_titel="";
  }
  filmWindow=window.open(filmURL,window_titel,'width='+width+',height='+height+',toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no');
  filmWindow.focus();
  if (! (IE4plus || IE5plus || IEmac)) height-=8;
  filmWindow.document.open('text/html','replace');
  filmWindow.document.writeln('<html><head><title>'+titel+'</title></head><body bgcolor="#9B9B9B" margin="0" leftmargin="0" topmargin="0" style="overflow:hidden;">');
  filmWindow.document.writeln('<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="'+width+'" HEIGHT="'+height+'" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">');
  filmWindow.document.writeln('<PARAM name="SRC" VALUE="'+filmURL+'">');
  filmWindow.document.writeln('<PARAM name="AUTOPLAY" VALUE="false">');
  filmWindow.document.writeln('<PARAM name="CONTROLLER" VALUE="true">');
  filmWindow.document.writeln('<PARAM name="bgcolor" value="#9B9B9B" />');
  filmWindow.document.writeln('<EMBED SRC="'+filmURL+'" WIDTH="'+width+'" HEIGHT="'+height+'" BGCOLOR="#9B9B9B" AUTOPLAY="false" CONTROLLER="true" PLUGINSPAGE="http://www.apple.com/quicktime/download/">');
  filmWindow.document.writeln('</EMBED>');
  filmWindow.document.writeln('</OBJECT>');
  filmWindow.document.writeln('</body></html>');
  filmWindow.document.close();
}

function flash_popup(flashURL,titel,window_titel,width,height) {
  bgcolor="#9B9B9B";
  width=Number(width);
  height=Number(height);
  if (IE4plus || IE5plus || IEmac) window_titel="";
  filmWindow=window.open(flashURL,window_titel,'width='+width+',height='+height+',toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no');
  filmWindow.focus();
  filmWindow.document.open('text/html','replace');
  filmWindow.document.writeln('<html><head><title>'+titel+'</title></head><body bgcolor="'+bgcolor+'" margin="0" leftmargin="0" topmargin="0" style="overflow:hidden;">');
  filmWindow.document.writeln('	<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
  filmWindow.document.writeln('	codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
  filmWindow.document.writeln('	WIDTH="'+width+'" ' );
  filmWindow.document.writeln('	HEIGHT="'+height+'" ' );
  filmWindow.document.writeln('	ALIGN="absmiddle"> ');
  filmWindow.document.writeln('	<PARAM NAME=movie VALUE="'+flashURL+'"> ');
  filmWindow.document.writeln('	<PARAM NAME=quality VALUE=high> ');
  filmWindow.document.writeln('	<PARAM NAME=bgcolor VALUE="'+bgcolor+'"> ');
  filmWindow.document.writeln('	<EMBED src="'+flashURL+'" ');
  filmWindow.document.writeln('	quality=high bgcolor="'+bgcolor+'" ');
  filmWindow.document.writeln('	WIDTH="'+width+'" ');
  filmWindow.document.writeln('	HEIGHT="'+height+'" ');
  filmWindow.document.writeln('	ALIGN="absmiddle" ');
  filmWindow.document.writeln('	TYPE="application/x-shockwave-flash" ');
  filmWindow.document.writeln('	PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> ');
  filmWindow.document.writeln('	</EMBED></OBJECT>');
  filmWindow.document.writeln('</body></html>');
  filmWindow.document.close();
}