function apri_finestra(url, nomeWindow, lunghezza, altezza) {
		nome = nomeWindow;
		// ------------------------------------------
		// Altezza della finestra [numero]
		if (altezza == null) {
			altezza = 600;
		}
		// ------------------------------------------
		// Lunghezza della finestra [numero]
		if (lunghezza == null) {
			lunghezza = 800;
		}	
		// ------------------------------------------
		// Posiziona finestra al centro [true|false]
		centra = true;
		// ------------------------------------------
		// 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='yes';
		// ------------------------------------------
		// Visualizza barra del menu [yes|no]
		menuB='no';
		// ------------------------------------------
		// Visualizza barre di scorrimento [yes|no]
		scrollB='no';	
		// ------------------------------------------
		// Visualizza barra di stato [yes|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;
	
		popupWindow = window.open(url, nome, caratteristiche);
		popupWindow.opener = self;
	
	}
	function apri_finestra_scroll(url, nomeWindow, lunghezza, altezza) {
		nome = nomeWindow;
		// ------------------------------------------
		// Altezza della finestra [numero]
		if (altezza == null) {
			altezza = 600;
		}
		// ------------------------------------------
		// Lunghezza della finestra [numero]
		if (lunghezza == null) {
			lunghezza = 800;
		}	
		// ------------------------------------------
		// Posiziona finestra al centro [true|false]
		centra = true;
		// ------------------------------------------
		// 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';	
		// ------------------------------------------
	
		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;
	
		popupWindow = window.open(url, nome, caratteristiche);
		popupWindow.opener = self;
	
	}
	function chg_img(nome,img)
	{
		immagine=document.getElementById(nome);
		immagine.src=img;
	}
