function ApriGalleria() {
	window.open("fotogallery/galleria.html","fotogallery","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=750,height=600")
}

function popUp(URL) {
eval("page"  + " = window.open(URL, '" + "', 'width=750,height=640,top=20,left=100');");
}

function privacy(URL) {
eval("page"  + " = window.open(URL, '" + "', 'width=350,height=350,top=20,left=100, scrollbars=yes');");
}


function SetUpdateDate() {
	// Get today's current date
	var now = new Date();

	// Array list of days.
	var days = new Array('Domenica','Lunedi','Martedi','Mercoledi','Giovedi','Venerdi','Sabato');

	// Array list of months.
	var months = new Array('1','2','3','4','5','6','7','8','9','10','11','12');

	// Array list of contents.
	var contents = new Array('&nbsp;','&nbsp;','&nbsp;','&nbsp;','&nbsp;','&nbsp;','&nbsp;');

	// Calculate the number of the current day in the week.
	var date = ((now.getDate() < 10) ? "" : "") + now.getDate();

	// Calculate four digit year.
	var fourdigits = function(number) { return (number < 1000) ? number + 1900 : number; }

	// Join it all together
	document.getElementById("UpdateDate").innerHTML = "aggiornato: " + days[now.getDay()] + "&nbsp;" + date + "/" + months[now.getMonth()] + "/" + (fourdigits(now.getYear())) // + "&nbsp;<br>" + contents[now.getDay()] ;
}