function fenster(popupURL,breite,hoehe) 
{ 
  top.name = "main_window"; 
  var popup = window.open(popupURL,'bsvpop','width='+breite+',height='+hoehe+',top=0,left=0,scrollbars=yes,resizable=0,status=0');
  if( navigator.appName.substring(0,8) == "Netscape" ) 
  { 
    popup.location = popupURL; 
    popup.opener = self; 
  } 
} 

function druckfenster(URL) 
{ 
  var param = 'toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=0,copyhistory=0,width=620,height=600';
  var win = window.open(URL,"printwindow",param);
  if( navigator.appName.substring(0,8) == "Netscape" ) 
  { 
    win.location = URL; 
    win.opener = self; 
  } 
} 

function pop(dateiname,titel,breite,hoehe) {
  hoehe = hoehe + 5;
  breite = breite + 20;
  if(window.screen) {
    if(screen.width<breite) breite=screen.width;
    if(screen.height<hoehe) hoehe=screen.height-50;
  }
  F = window.open('','pop','width='+breite+',height='+hoehe+',top=0,left=0,scrollbars=yes');
  F.document.write('<html><head><title>SV Berolina Mitte - '+titel+'</title></head><body style="margin:0;padding:0; background-color:black;">');
  F.document.write('<img src="'+dateiname+'" alt="'+titel+'" />');
  F.document.write('</body></html>');
}

function dsbpopup(popupURL) {
  top.name = "main_window"; 
  var popup = window.open(popupURL,'bsvpop','width=800,height=600,top=0,left=0,scrollbars=yes,resizable=0,status=0');
  if( navigator.appName.substring(0,8) == "Netscape" ) 
  { 
    popup.location = popupURL; 
    popup.opener = self; 
  } 
}

