    var map = null;
    var geocoder = null;

    function initialize(mapid) {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(new GLatLng(42.886548, -78.878580), 13);
        geocoder = new GClientGeocoder();
      }
	showAddress(mapid);
    }

    function showAddress(mapid) {
	var address="";
	//alert(mapid);
	//address=document.getElementById("address42").value;
	address=document.getElementById("address"+mapid).value;
      if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
            if (!point) {
              alert(address + " not found");
            } else {
              map.setCenter(point, 13);
			  map.addControl(new GSmallMapControl());
        	  map.addControl(new GMapTypeControl());
              var marker = new GMarker(point);
			  map.setZoom(15);
              map.addOverlay(marker);
              marker.openInfoWindowHtml(address);
            }
          }
        );
      }
	return false;
    }