    // JavaScript Document

/* Funzione per aprire una finestra di PopUp al centro dello schermo */
var popUpWin=0;
/*
 I:    URLStr url da aprire
 I:     width larghezza della finestra
 I:     heigh altezza della finastra
*/
function popUpWindow (URLStr, width, height) {
    if (popUpWin) {
        if (!popUpWin.closed) popUpWin.close();
    } // if 
    var left = (screen.width / 2) - (width / 2);
    var top = (screen.height / 2) - (height / 2);
    popUpWin = open (URLStr, '', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
} // popUpWin

/* Funzione per aprire una finestra contenente il file version.txt */
var ver=0;
function version (URLStr, width, height) {
    if (ver) {
        if (!ver.closed) ver.close();
    } // if 
    var left = (screen.width / 2) - (width / 2);
    var top = (screen.height / 2) - (height / 2);
    ver = open (URLStr, '', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
} // version

    /* webmaster: Zan-Shi */
