function openWin(url,winname,posx,posy,width,height,scrollbars) {
  /* Defaultwerte */
    default_param = new Array('neues_popup',20,20,400,400,0);
    
  /* Oeffnet ein neues PopUp-Fenster mit den entsprechenden Parametern. Falls jene nicht
     gesetzt sind, werden sie mit Standardwerten belegt. */
  if((typeof winname)=='undefined') winname=default_param[0]; if(winname==0) winname=default_param[0];
  if((typeof posx)=='undefined') posx=default_param[1]; if(posx==0) posx=default_param[1];
  if((typeof posy)=='undefined') posy=default_param[2]; if(posy==0) posy=default_param[2];
  if((typeof width)=='undefined') width=default_param[3]; if(width==0) width=default_param[3];
  if((typeof height)=='undefined') height=default_param[4]; if(height==0) height=default_param[3];
  
  if(navigator.platform.toLowerCase().indexOf("win")>-1) objekt = window.open('', winname);
  
  if(url) {
    if((typeof objekt) != 'undefined') {
      /* Falls das Fenster schon geoeffnet ist, wird es geschlossen */
      if(!objekt.closed) objekt.close();
    }

    objekt = window.open(url,winname,'width='+width+',height='+height+',left='+posx+',top='+posy+',dependent=yes,hotkeys=no,location=no,menubar=no,resizable=no,status=yes,scrollbars=yes,toolbar=no');

    objekt.focus
  } else {
    alert('Fehler openwin.1 - Keine URL fuer das PopUp uebergeben!');
    return false;
  }
}

function addCodebase(flashclip) {
  if(document.all) {
    document.getElementById("flashclip").setAttribute("codebase", 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,22,0');
  }
}
/*##########################################
  Alte Funktionen
  ########################################## */
  function open_training(name){
    window.open("http://www.kbrio.de/training/"+nummer+".htm","training","resizable=yes width=380 height=500");
  }
  function open_impressum(){
    window.open("impressum.htm","impressum","width=210 height=360 scrollbars=yes")
  }
  function open_window(url,name,settings){
    window.open(url,name,settings);
  }
  function openpop() {
  	intro = window.open("popup_umzug/popup.htm", "Intro", "width=330,height=420,noscrollbars");
   	intro.focus();
  	intro.moveTo(150,100);
  }
  function fgtpass() {
  	mainfenster = window.open("http://www.k-brio.de/elearning/fgtpass.php", "passwort", "width=340,height=170,noscrollbars,noresize");
   	mainfenster.focus();
  }
/*##########################################
  Alte Funktionen ENDE
  ########################################## */

