<!--//

    var ie=document.all && !window.opera;
	/************************************************************
	* Generica finestra popup
	* Variabili:
	* - URLStr: locazione file da mostrare
	* - wLeft: posizione finestra - da sinistra
	* - wTop: posizione finestra - dall'alto
	* - wWidth: larghezza finestra
	* - wHeight: altezza finestra
	* - wBar: barra della finestra ('no' per nessuna barra)
	************************************************************/
	var popUpWin = 0;
	function popUpWindow(URLStr, wLeft, wTop, wWidth, wHeight, wBar)
	{
	    if(popUpWin) {
			if(!popUpWin.closed) popUpWin.close();
	    }
	    wBar = (popUpWindow.arguments.length < 6)?"no":wBar;
	    param = 'toolbar=no,location=no,directories=no,status=no,menubar=no,'
	    param += 'scrollbars='+wBar+',resizable=yes,copyhistory=yes,'
	    param += 'width='+wWidth+',height='+wHeight+',left='+wLeft+',top='+wTop+',screenX='+wLeft+',screenY='+wTop+'';
	    popUpWin = open(URLStr, 'popUpWin', param);
	}
	
	/***********************************************
	* Dimensioni schermo
	* Uso: windowSize(_={wWidth:0, wHeight: 0});
	***********************************************/
	function windowSize(_) {
		if(typeof(window.innerWidth)=='number'){ //Non IE
			_.wWidth = window.innerWidth;
			_.wHeight = window.innerHeight;
		} else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)){
			// IE 6+ 'standards compliant mode'
			_.wWidth = document.documentElement.clientWidth;
			_.wHeight = document.documentElement.clientHeight;
		} else if(document.body && (document.body.clientWidth || document.body.clientHeight)) {
			// IE 4 compatibile
			_.wWidth = document.body.clientWidth;
			_.wHeight = document.body.clientHeight;
		}
	}

//-->
