function openWindow(url, nome, lunghezza, altezza) {
 // ------------------------------------------
 // URL del file da aprire: url
 // ------------------------------------------
 // Nome della finestra: nome
 // ------------------------------------------
 // Posiziona finestra al centro [true|false]
 centra = false;
 // ------------------------------------------
 // Distanza dal margine sinistro [numero]
 posX = 100;
 // ------------------------------------------
 // Distanza dal margine destro [numero]
 posY = 100;
 // ------------------------------------------
 // Visualizza a pieno schermo - solo IE4
 fullscreen='no';
 // ------------------------------------------
 // Ridimensionabile [yes|no]
 resizable='no';
 // ------------------------------------------
 // Visualizza barra del menu [yes|no]
 menuB='no';
 // ------------------------------------------
 // Visualizza barre di scorrimento [yes|no]
 scrollB='yes'; 
 // ------------------------------------------
 // Visualizza barra di stato [yes|no]
 statusB='no'; 
 // ------------------------------------------
 // Visualizza [yes|no]
 visible = true; 
 // ------------------------------------------
 
 if (centra) {
  posX = Math.round((screen.width - lunghezza)/2);
  posY = Math.round((screen.height - altezza)/2);  
 }
 
 caratteristiche = "menubar=" + menuB;
 caratteristiche += ",scrollbars=" + scrollB;
 caratteristiche += ",statusbar=" + statusB;  //Netscape
 caratteristiche += ",status=" + statusB;  //IE4
 caratteristiche += ",height=" + altezza;
 caratteristiche += ",width=" + lunghezza;
 caratteristiche += ",screenX=" + posX;   //Netscape
 caratteristiche += ",left=" + posX;   //IE4
 caratteristiche += ",screenY=" + posY;   //Netscape
 caratteristiche += ",top=" + posY;   //IE4
 caratteristiche += ",fullscreen=" + fullscreen;  //solo IE4
 caratteristiche += ",resizable=" + resizable;
 caratteristiche += ",visible=" + visible;
 
 window.open(url, nome, caratteristiche);
 
}

//funzione simile alla precedente ma senza la scroll bar 
//(per la finestra di popup sul logo performed)

function openWindow2(url, nome, lunghezza, altezza) {
 centra = false;
 posX = 100;
 posY = 100;
 fullscreen='no';
 resizable='no';
 menuB='no';
 scrollB='no'; 
 statusB='no'; 
 
 if (centra) {
  posX = Math.round((screen.width - lunghezza)/2);
  posY = Math.round((screen.height - altezza)/2);  
 }
 
 caratteristiche = "menubar=" + menuB;
 caratteristiche += ",scrollbars=" + scrollB;
 caratteristiche += ",statusbar=" + statusB;  //Netscape
 caratteristiche += ",status=" + statusB;  //IE4
 caratteristiche += ",height=" + altezza;
 caratteristiche += ",width=" + lunghezza;
 caratteristiche += ",screenX=" + posX;   //Netscape
 caratteristiche += ",left=" + posX;   //IE4
 caratteristiche += ",screenY=" + posY;   //Netscape
 caratteristiche += ",top=" + posY;   //IE4
 caratteristiche += ",fullscreen=" + fullscreen;  //solo IE4
 caratteristiche += ",resizable=" + resizable;
 
 window.open(url, nome, caratteristiche);
 
}