//
// Copyright © 2002 Techniker Krankenkasse, Hamburg, Germany. All rights reserved.
//
// @author  Erstellt von KRo am 2002/10/14
// @author  Zuletzt geändert von $Author: n.schwalbe $ am $Date: 2004/08/17 12:23:44 $
// @version $Revision: 1.1.1.1 $ $Source: /usr/local/cvsroot/WalkingCoach-DWI/webapp/window.js,v $
//
//

//
// Funktionen zum Öffnen von Browser-Fenstern
//


// Öffnet ein Fenster und liefert das Fenster zurück.
function getNewWindow(url, name, width, height, toolbar, status, scrollbar, resizable, menubar, location) {
    return window.open(url, name,"width=" + width + ",height=" + height + ", toolbar=" + toolbar + ",status=" + status + ",scrollbars=" + scrollbar + ",resizable=" + resizable + ",menubar=" + menubar + ",location=" + location);
}

// Öffnet ein Fenster und liefert 'false' zurück.
function newWindow(url, name, width, height, toolbar, status, scrollbar, resizable, menubar, location) {
    getNewWindow(url, name, width, height, toolbar, status, scrollbar, resizable, menubar, location);
    return false;
}

// Öffnet ein Hilfe-Fenster (hat fest definierte Merkmale: Grösse = 349x580, Position = 20,20) und liefert 'false' zurück.
function newHelpWindow(url) {
//  return newWindowPositioned(url,'help',20,20,349,480,'no','no','no','no','no','no');
    return newWindow(url,'help',367,495,'no','no','yes','no','no','no');
}



// Öffnet ein Fenster, positioniert das Fenster und liefert das Fenster zurück.
function getNewWindowPositioned(url, name, xPos, yPos, width, height, toolbar, status, scrollbar, resizable, menubar, location) {
    newWin = getNewWindow(url, name, width, height, toolbar, status, scrollbar, resizable, menubar, location);
    newWin.moveTo(xPos, yPos);
    return newWin;
}

// Öffnet ein Fenster, positioniert das Fenster und liefert 'false' zurück.
function newWindowPositioned(url, name, xPos, yPos, width, height, toolbar, status, scrollbar, resizable, menubar, location) {
    getNewWindowPositioned(url, name, xPos, yPos, width, height, toolbar, status, scrollbar, resizable, menubar, location);
    return false;
}

