// JavaScript Documentfunction inviaMail(ilform) {	errori = ""if (isEmail("e-mail") && isFilled("nome")) {	document.getElementById(ilform).action = "iscrizione_evento.asp"	document.getElementById(ilform).submit()	} else {	//break 	alert("ATTENZIONE:"+"\n"+errori)	}		}	function isEmail(quale) {	//alert(chi)	string = document.getElementById(quale).value		if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1) {		return true		} else {		errori = errori+ "e-mail non valida"		return false	}}function isFilled(chi) {	string = document.getElementById(chi).value	if (string != '') {		return true	} else {		errori = errori+ "il campo "+document.getElementById(chi).name+" è vuoto"		return false	}}function caricaMappa() {	if (GBrowserIsCompatible()) {		var thisdate = new Date();		var map = new GMap2(document.getElementById("map"));		luoghi = new GGeoXml("http://www.decennalebicocca.it/dove_1.xml?"+thisdate.getTime());		map.addControl(new GLargeMapControl());		map.addControl(new GMenuMapTypeControl());		map.addControl(new GOverviewMapControl());		map.setCenter(new GLatLng(xcoords,ycoords), 16);		map.addOverlay(luoghi);	}}addToCart = function(id) {	myLightWindow = new lightwindow();	new Ajax.Request('script/carrello.asp?action=add',  	{		parameters: {prodID: id},		onSuccess: function(transport){		  myLightWindow.activateWindow({			href: 'script/carrello.asp', 			width: 800,			title: 'carrello', 			});		  		},		onFailure: function(){ alert('Something went wrong...') }  	});		}showCart = function() {	myLightWindow = new lightwindow();	myLightWindow.activateWindow({			href: 'script/carrello.asp', 			width: 800,			title: 'carrello', 			});	}