/* file: global.js

author: Interface Worxx, Thomas Kalteis */



/* Die Funktion erzeugt ein neues Fenster und holt das referenzierte Resource. */
function openNewWindow(link, title, x, y, resizable, m_bar, l_bar, s_bars, status)

 {

    var x_new;
    var y_new;
    var leftW=screen.height/2-(y/2);
    var widthW=screen.width/2-(x/2);
    var bname = navigator.appName;
    if (bname == "Netscape")
    {
        x_new = x + 0;
        y_new = y + 0;
        options = "width=" + x_new + ",height=" + y_new + ",resizable=" + resizable + ",menubar=" + m_bar + ",locationbar=" + l_bar + ",scrollbars=" + s_bars + ",status=" + status;
    }
    else
    {
        options = "width=" + x + ",height=" + y + ",resizable=" + resizable + ",menubar=" + m_bar + ",locationbar=" + l_bar + ",scrollbars=" + s_bars + ",status=" + status;
    }
    fenster = window.open(link, title, options);
    fenster.moveTo(widthW, leftW);
 }


/* Diesek Funktion druckt das aktuelle Fenster */
function printWindow(){
   bV = parseInt(navigator.appVersion)
   if (bV >= 4) window.print()
}











