
//
// Neues Fenster öffnen
//
function OpenWindow(theURL,winName,winCenter,x,y,features) {
  var param = "width=" + x + ",height=" + y + ( features=="" ? "" : "," + features );
  var win = window.open(theURL,winName,param);

  if (theURL.indexOf('http://') == -1) {
    if (winCenter) win.moveTo((screen.width-x)/2,(screen.height-y)/2);
    win.focus();
  }
}



//
// Neues Fenster öffnen mit der Breite 600 Pixel
//
function press() {
  var width = 800;
  
  var args = press.arguments;
  
  var theURL   = args[0];
  var height   = (args[1] ? args[1] : 200);
  var toolbar  = (args[2] == 1 ? "yes" : "no");
  var location = (args[3] == 1 ? "yes" : "no");

  var param = "scrollbars=yes,width=" + width + ",height=" + height + ",toolbar=" + toolbar + ",location=" + location;
  var win = window.open(theURL,'coll',param);

  win.moveTo((screen.width-width)/2,(screen.height-height)/2);

  win.focus(); 
}

//
// Neues Fenster öffnen mit der Breite 600 Pixel
//
function preview() {
  var width = 800;

  var args = preview.arguments;

  var theURL   = args[0];
  var height   = (args[1] ? args[1] : 200);
  var toolbar  = (args[2] == 1 ? "yes" : "no");
  var location = (args[3] == 1 ? "yes" : "no");

  var param = "scrollbars=yes,width=" + width + ",height=" + height + ",toolbar=" + toolbar + ",location=" + location;
  var win = window.open(theURL,'coll',param);

  win.moveTo((screen.width-width)/2,(screen.height-height)/2);

  win.focus();
}




//
// Neues Fenster öffnen mit der Breite 800 Pixel
//
function openup() {
  var width = 800;
  
  var args = openup.arguments;
  
  var theURL   = args[0] ;
  var height   = (args[1] ? args[1] : 200);
  var toolbar  = (args[2] == 1 ? "yes" : "no");
  var location = (args[3] == 1 ? "yes" : "no");

  var param = "scrollbars=yes,width=" + width + ",height=" + height + ",toolbar=" + toolbar + ",location=" + location;
  var win = window.open(theURL,'coll',param);

  win.moveTo((screen.width-width)/2,(screen.height-height)/2);

  win.focus(); 
}


function catalogue() {
  var width = 800;

  var args = catalogue.arguments;

  var theURL   = args[0];
  var height   = (args[1] ? args[1] : 200);
  var toolbar  = (args[2] == 1 ? "yes" : "no");
  var location = (args[3] == 1 ? "yes" : "no");

  var param = "scrollbars=no,width=" + width + ",height=" + height + ",toolbar=" + toolbar + ",location=" + location;
  var win = window.open(theURL,'coll',param);

  win.moveTo((screen.width-width)/2,(screen.height-height)/2);

  win.focus();
}
