		function StartUp() {
			new Protofade('protofade', { randomize:true });
		}
		document.observe ('dom:loaded', StartUp);

		function conferma()
		{
			if(window.confirm("Conferma cancellazione?")){
				return true;}
			else {
				return false;
			}
		}
		
		function controlla() {
			pieno = true;
			for (var i = 0; i < document.getElementsByClassName('richiesto').length; i++) {
				if (''+document.getElementsByClassName('richiesto')[i].value == '') {
				pieno = false;
				}
			}

			if (pieno) {
				return true;
			}

			else {
				alert('Riempire tutti i campi obbligatori');
				return false;
			}
		}
		function preloadimmagini() {
			var imag = document.getElementsByTagName("img");
			for (var i = 0; i < imag.length; i++) {
				var sorgente = imag[i].src;
				dummy= new Image(100,25); 
				dummy.src=sorgente; 
			}
		}
		
		function assolvenza() {
			opacityTween = new OpacityTween(document.getElementById('pgBod'),Tween.bounceEaseOut, 0, 100, 1);
			opacityTween.start()
		}
		
		function dissolvenza() {
			opacityTween = new OpacityTween(document.getElementById('pgBod'),Tween.bounceEaseOut, 100, 0, 1);
			opacityTween.start()
		}
