<!--
//#####################################################################################
//#####################	   INIZIO FUNCTION INGRANDIMENTOadHOC	#######################

function INGRANDIMENTOadHOC(TITOLO, NOME, LARGH, LUNG) {
	FOTONA = window.open("","FOTONA","width=" + LARGH + ",height=" + LUNG + ",location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=1,toolbar=0");
	FOTONA.document.open();
	FOTONA.document.write("<html><head><title>" + TITOLO + "</title>");
	FOTONA.document.write('</head><body bgcolor="#FFFFFF" text="#000000" style="font-size: 10 pt; font-family: Verdana, Arial; overflow: hidden" topmargin="0" leftmargin="0" onclick="window.close();" onblur="window.close();">');
	FOTONA.document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" style="font-size: 8 pt"><tr><td align="center"><img border="0" src="' + NOME + '" alt="ATTENDERE CARICAMENTO ... Cliccando, si chiude la finestra" width="' + LARGH + '" height="' + LUNG + '" onload="this.alt=\'Cliccando, si chiude la finestra\'"></td></tr></table>');
	FOTONA.document.write("</body></html>");
	FOTONA.document.close();
        FOTONA.moveTo((screen.width-LARGH)/2,(screen.height-LUNG)/2);
	FOTONA.focus();
}
//---------------------	   FINE FUNCTION INGRANDIMENTOadHOC	-----------------------


//#####################################################################################
//#####################	   INIZIO di FUNCTION VAI e APRI	#######################

function VAI(NdoVAI) {
	if (NdoVAI.length > 0){
		BASE = "../"
		DEST = "location.href = BASE + '" + NdoVAI + "'";
		eval(DEST);
		}
}

function APRI(NdoVAI) {
	if (NdoVAI.length > 0){
		// ##########	Compatibile con MSIE5 e Opera 7
		DEST = "location.href = '" + location.href.substring(0,location.href.lastIndexOf('\/')) + "/index.asp?" + NdoVAI + "'";
		eval(DEST);
		}
}

//---------------------	   FINE di FUNCTION VAI e APRI		-----------------------


//##############################	INIZIO	FUNCTION orologio	###############################
//var DOWArray = new initArray("Dom","Lun","Mar","Mer","Gio","Ven","Sab");
var DOWArray = new initArray("","","","","","","");
var MOYArray = new initArray("Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic");

function initArray() {  
	this.length = initArray.arguments.length
	for (var i = 0; i < this.length; i++) {
		this[i+1] = initArray.arguments[i]
		}
}

function tictac() {
	var giorno, mese, anno, dataitaliana;
	var hours, minutes, seconds, oraitaliana;
	var intHours, intMinutes, intSeconds;
	var today;
	var saluto;

	today = new Date();
	giorno = DOWArray[today.getDay()+1] + "&nbsp; " + today.getDate()
	mese = MOYArray[(today.getMonth()+1)]
	anno = today.getYear() - 2000
	dataitaliana = giorno + " " + mese + " 0" + anno

	intHours = today.getHours();
	intMinutes = today.getMinutes();
	intSeconds = today.getSeconds();

	hours = intHours + ":";

	if (intMinutes < 10) {
		minutes = "0"+intMinutes+":";
		}
	else {
		minutes = intMinutes+".";
		}

	if (intSeconds < 10) {
		seconds = "0"+intSeconds+" ";
		}
	else {
		seconds = intSeconds+" ";
		}

	oraitaliana = hours + minutes + seconds

	if(intHours < 5) {
		saluto="Buonanotte";
		}
	else if (intHours < 14) {
		saluto="Buon mattino";
		}
	else if (intHours < 19) {
		saluto="Buon pomeriggio";
		}
	else if (intHours < 23) {
		saluto="Buonasera";
		} 
	else if (intHours < 24) {
		saluto="Buonanotte";
		}
	
	timeString = "" + dataitaliana + " - " + oraitaliana; // + " - " + saluto;
	TimeBAR.innerHTML = timeString;
	PIPPO = setTimeout("tictac();", 1000);
}
//##############################	FINE	FUNCTION orologio	###############################

//#####################################################################################
//#############	  	 INIZIO di FUNCTION USEFULtxt		#######################
//   ###   ---   VISUALIZZA le terminologie alternative			---   #########
function USEFULtxt(QUALE) {
	if (QUALE.style.display == 'none') {
		QUALE.style.display = 'inline'
		}
	else {
		QUALE.style.display = 'none'
		}
}
//-------------	   	Fine di FUNCTION USEFULtxt		-----------------------
//#####################################################################################
-->
