var geocoder = new GClientGeocoder();

function showAddress(map_id, address)
{
  var map;
  geocoder.getLatLng(
    address,
    function(point) {
      if (!point) {
        // alert(address + " not found");
        document.getElementById(map_id).style.display = "none";
      } else {
        document.getElementById(map_id).style.display = "block";
	  	map = new GMap2(document.getElementById(map_id));
        map.setCenter(point, 16);
		//map.addControl(new GSmallMapControl());
		map.addControl(new GLargeMapControl());
		map.addControl(new GMapTypeControl());
        var marker = new GMarker(point);
        map.addOverlay(marker);
        marker.openInfoWindowHtml(address);
      }
    }
  );
}

