		var caricato = false;

		var immagini = new Array();
		var titoli = new Array();

		function openWindow(URL, js_width, js_height) {
			window.open(URL, 'ciao', 'toolbar = 0, scrollbars = 0, location = 0, statusbar = 0, menubar = 0, resizable = 1, width = ' + js_width + ', height = ' + js_height + ', left = ' + Math.round((1024 - js_width) / 2) + ', top = ' + Math.round((768 - js_height) / 2));
		}

		function check() {
			make = 1;

			if(document.mail.mittente.value == "") {
				alert("Non ha compilato il campo \"Mittente\"!");
				make = 0;
			}

			if(document.mail.testo.value == "") {
				alert("Non ha compilato il campo \"Testo\"!");
				make = 0;
			}

			if(document.mail.replyTo.value != "") {
				var str = document.mail.replyTo.value;
				var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i

				if (!filter.test(str)) {
					alert("L'e-mail inserito non è valido!")
					make = 0;
				}
			}


			if(make == 1) {
				document.mail.submit();
			}
		}

		function openWindow(URL, js_width, js_height) {
			window.open(URL, 'ciao', 'toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no,width=' + js_width + ',height=' + js_height + ',left=' + Math.round((1024 - js_width) / 2) + ',top=' + Math.round((768 - js_height) / 2));
		}

		function espandiComprimi(numero)
		{
			if(document.getElementById("a" + numero + "0") != null)
			{
				if(document.getElementById("a" + numero + "0").style.display == "none")
				{
					document.getElementById("img" + numero).src = "./images/meno.png";
					newState = "block";
				}
				else
				{
					document.getElementById("img" + numero).src = "./images/piu.png";
					newState = "none";
				}

				i = 0;
				while(document.getElementById("a" + numero + "" + i) != null)
				{
					document.getElementById("a" + numero + "" + i).style.display = newState;
					i++;
				}
			}
		}

		function over(element)
		{
			element.src = element.id + "_over.gif";
		}

		function down(element)
		{
			element.src = element.id + "_on.gif";
		}
	
		function out(element)
		{
			element.src = element.id + ".gif";
		}