// Javascript Funktionen

function popup(url,windowname,sizex,sizey,center,scrollbar) {
  if( center == 1 ) {
    xoffset = (screen.width - sizex)/2;
    yoffset = (screen.height - sizey)/2;
  }
  newwindow = window.open(url, windowname, "toolbar=no, scrollbars="+scrollbar+",dependent,height="+sizey+",width="+sizex);
  if( center == 1 ) {
    newwindow.moveTo(xoffset,yoffset);
  }
  newwindow.focus();

}
