var flag;

function Data() 
{
	var months = new Array();
	months[0] = 'Gennaio'; months[1] = 'Febbraio'; months[2] = 'Marzo'; 
	months[3] = 'Aprile'; months[4] = 'Maggio'; months[5] = 'Giugno';
	months[6] = 'Luglio'; months[7] = 'Agosto'; months[8] = 'Settembre'; 
	months[9] = 'Ottobre'; months[10] = 'Novembre'; months[11] = 'Dicembre';
        
	var days = new Array();
    days[0] = 'Domenica,'; days[1] = 'Luned&igrave;,'; days[2] = 'Marted&igrave;,'; 
    days[3] = 'Mercoled&igrave;,';days[4] = 'Gioved&igrave;,'; days[5] = 'Venerd&igrave;,';
    days[6] = 'Sabato,';
          
	now = new Date();
	var dayname = days[now.getDay()];
	var monthname = months[now.getMonth()];
	var dayofmonth =now.getDate();
	var year = now.getYear();
	if (year < 1000) 
		year += 1900;
	document.write(dayname + ' ' + dayofmonth + ' ' + monthname + ' ' + year);
}

function Ora()
{
	now = new Date();
	var hours = now.getHours();
	var minutes = now.getMinutes();
	var seconds = now.getSeconds();
	if (hours <= 9) hours = "0" + hours;
  	if (minutes <= 9) minutes = "0" + minutes;
  	if (seconds <= 9) seconds = "0" + seconds;
	var clock_span = document.getElementById('orario');
	clock_span.innerHTML = hours + ':' + minutes + '.' + seconds;
	setTimeout("Ora()", 1000);
}

