	function loadMap(elementid,fulladdress) {
		if (GBrowserIsCompatible()) {
		    mapdiv=document.getElementById(elementid);
			var map = new GMap2(mapdiv);
			map.enableScrollWheelZoom();
			w=parseInt(mapdiv.style.width);
			h=parseInt(mapdiv.style.height);
			var mapOptions = new GMapUIOptions(new GSize(h,w));
			map.setUI(mapOptions);
			//map.addControl(new GSmallMapControl());
			//var mapControl = new GHierarchicalMapTypeControl();
			//mapControl.clearRelationships();
			//mapControl.addRelationship(G_SATELLITE_MAP,G_PHYSICAL_MAP);
		//	map.addControl(mapControl);
			//var marker = new GMarker(point);
			// http://www.fcc.gov/mb/audio/bickel/DDDMMSS-decimal.html
			//map.setCenter(new GLatLng(44.57411428848741, 11.356408596038818), 14,G_NORMAL_MAP );
			// Insert a Push Pin
			//var point = new GLatLng(44.57411428848741, 11.356408596038818);
			var address = fulladdress;
			var geocoder = new GClientGeocoder;
			geocoder.getLatLng(
				address,
				function(point) {
					if (!point) {
						alert(address + " not found");
					} else {
						map.setCenter(point,14);
						var marker = new GMarker(point);
						map.addOverlay(marker);
					}
				}
			);
		}
	}

	function getDirections(theform){
		var to = theform.daddr.value;
		var from = theform.saddr.value;
		window.open("http://maps.google.com/maps?hl=it&saddr="+from+"&daddr="+to);
	}

	function dimMappa(id,x,y,toHide,toShow){
		document.getElementById(id).style.width=x+"px";
		document.getElementById(id).style.height=y+"px";
		document.getElementById(toHide).style.display="none";
		document.getElementById(toShow).style.display="inline";
	}
