	function CambiaEvento(idevento)
	{
		
		// COLONNA 1
		eC1T = document.getElementById('eTesta');
		eC1C = document.getElementById('eCorpo');
		eC1P = document.getElementById('ePiede');
		eC1Pos = document.getElementById('C1Pos');		// Record letto
		eC1Row = document.getElementById('C1Row');		// Record disponibili
		
		/* 
			Controllo il valore impostato in eC1Pos, se uguale al numero di record letti lo reimposto a 1 altrimenti lo incremento di 1
			se non ci sono eventi salto la gestione
		*/
		
		if (eC1Row.value > 0)
		{
			if (eC1Pos.value == eC1Row.value) { eC1Pos.value = '1'; } else if (eC1Pos.value < eC1Row.value) { eC1Pos.value = parseInt(eC1Pos.value) + 1; }
			
			// Aggiorno i valori da visualizzare
			eC1T_V = document.getElementById('C1T_' + eC1Pos.value);
			eC1C_V = document.getElementById('C1C_' + eC1Pos.value);
			eC1P_V = document.getElementById('C1P_' + eC1Pos.value);
	
			// INSERISCO IL CONTENUTO
			eC1T.innerHTML = eC1T_V.value;
			eC1C.innerHTML = eC1C_V.value;
			eC1P.innerHTML = eC1P_V.value;
	
			// COLONNA 2
			eC2T = document.getElementById('aTesta');
			eC2C = document.getElementById('aCorpo');
			eC2P = document.getElementById('aPiede');
			eC2Pos = document.getElementById('C2Pos');		// Record letto
			eC2Row = document.getElementById('C2Row');		// Record disponibili
		}
			
		/* 
			Controllo il valore impostato in eC2Pos, se uguale al numero di record letti lo reimposto a 1 altrimenti lo incremento di 1
			se non ci sono eventi salto la gestione
		*/
		
		if (eC2Row.value >0)
		{
			if (eC2Pos.value == eC2Row.value) { eC2Pos.value = '1'; } else if (eC2Pos.value < eC2Row.value) { eC2Pos.value = parseInt(eC2Pos.value) + 1; }
			
			// Aggiorno i valori da visualizzare
			eC2T_V = document.getElementById('C2T_' + eC2Pos.value);
			eC2C_V = document.getElementById('C2C_' + eC2Pos.value);
			eC2P_V = document.getElementById('C2P_' + eC2Pos.value);
			
			// INSERISCO IL CONTENUTO
			eC2T.innerHTML = eC2T_V.value;
			eC2C.innerHTML = eC2C_V.value;
			eC2P.innerHTML = eC2P_V.value;
	
			// COLONNA 4
			eC4T = document.getElementById('mTesta');
			eC4C = document.getElementById('mCorpo');
			eC4P = document.getElementById('mPiede');
			eC4Pos = document.getElementById('C4Pos');		// Record letto
			eC4Row = document.getElementById('C4Row');		// Record disponibili
		}
		
		/* 
			Controllo il valore impostato in eC4Pos, se uguale al numero di record letti lo reimposto a 1 altrimenti lo incremento di 1
			se non ci sono eventi salto la gestione
		*/
		
		if (eC4Row.value > 0)
		{
			if (eC4Pos.value == eC4Row.value) { eC4Pos.value = '1'; } else if (eC4Pos.value < eC4Row.value) { eC4Pos.value = parseInt(eC4Pos.value) + 1; }
			
			// Aggiorno i valori da visualizzare
			eC4T_V = document.getElementById('C4T_' + eC4Pos.value);
			eC4C_V = document.getElementById('C4C_' + eC4Pos.value);
			eC4P_V = document.getElementById('C4P_' + eC4Pos.value);
			
			// INSERISCO IL CONTENUTO
			eC4T.innerHTML = eC4T_V.value;
			eC4C.innerHTML = eC4C_V.value;
			eC4P.innerHTML = eC4P_V.value;
		}
		
	}
	
	x= window.setInterval("CambiaEvento()", 7000);
	
