<!-- Funzione che visualizza la data e l'ora -->
<!-- Per usare utilizzare -> document.write(getDateTime()) -->
function getDateTime()
{
	var now = new Date();
	var e = '0' + now.getHours();
	if (e.length > 2) e = e.substring(1);
	d = e + ':';
	e = '0' + now.getMinutes();
	if (e.length > 2) e = e.substring(1);
	d += e + ' ';
	e = '0' + now.getDate();
	if (e.length > 2) e = e.substring(1);
	d += e + '/';
	e = '0' + (now.getMonth() + 1);
	if (e.length > 2) e = e.substring(1);
	d += e + '/' + now	.getFullYear();
	
	return d;
}

<!-- Funzioni per l'hover di celle -->
function startScroll() {;}
function startSwitch() {} 

function change(obj,status) {
  if ((document.all) && (status)) {
	eval ('document.all["' + obj +'"].style.background="336699"');
	ret=eval ('document.all["' + obj +'"].style.color="ffffff"');
	setTimeout ('ret',10);
  }
  if ((document.all) && (status==0))  {
	eval ('document.all["' + obj +'"].style.background="99CCCC"');
	ret=eval ('document.all["' + obj +'"].style.color="333366"');
	setTimeout ('ret',10);
  }
}

function startAll() {
	startSwitch();
}

<!-- Funzione che apre il sito alsystem -->
function load_alsystem() {
	open("http://web.tiscalinet.it/alsystem");
}


<!-- Funzione che apre la finestra delle News -->
function load_news() {
	newWindow = window.open('news.htm', 'news', 'width=400,height=420,scrollbars=no');
	newWindow.focus;
}

function load_popup() {
	newWindow = window.open('popup.htm', 'news', 'width=500, height=520, scrollbars=yes');
	newWindow.focus;
}

<!-- Funzione che apre il forum -->
function load_forum() {
	// newWindow = window.open('forum.htm', 'forum', 'width=600,height=550,scrollbars=yes');
	// newWindow.focus;
	open("forum.htm");
}

<!-- Funzione che apre la finestra del Sondaggio -->
function load_poll() {
	newWindow = window.open('sondaggio.htm', 'sondaggio', 'width=400,height=300,scrollbars=no');
	newWindow.focus;
}

function unload_poll() {
	close();
}

<!-- Funzione che apre la finestra photo_box.htm che contiene un'immagine passata -->
function load_photo(number) {
	// alert("Valore passato a load_photo " + number);
	newWindow = window.open('photo_box.htm','photo_box', 'width=450,height=520,scrollbars=no');
	newWindow.parametro = number;
	newWindow.focus;
}


function load_image(number) {
	var browName = navigator.appName;
	// alert("Valore passato a load_image " + number);
	var imgArray = new Array(
				'photo/big/atalanta-vr.jpg',
				'photo/big/butei_1_big.jpg',
				'photo/big/butei_2_big.jpg',
				'photo/big/curva_1_big.jpg',
				'photo/big/curva_2_big.jpg',
				'photo/big/curva_3_big.jpg',
				'photo/big/curva_4_big.jpg',
				'photo/big/curva_5_big.jpg',
				'photo/big/fio_1_big.jpg',
				'photo/big/fio_2_big.jpg'
			);
	document.write('<img src="' + imgArray[number] + '"');
}
