    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="";
	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 = createMarker(fingerIcon);
		
			 // var marker = new GMarker(point); // orig
			 
			 	/*new */
	  
	  
			var hdfIcon = new GIcon(G_DEFAULT_ICON);
			hdfIcon.image = "img/hdfmarkerImage.png";
			hdfIcon.iconSize = new GSize(44, 39);
			hdfIcon.shadow = "img/hdfshadowImage.png";
      		hdfIcon.shadowSize = new GSize(61, 39);
			hdfIcon.iconAnchor = new GPoint(3, 37);



			
			   markerOptions = { icon:hdfIcon };
			   
			  map.setZoom(15);
             // map.addOverlay(marker);
			  
			  map.addOverlay(new GMarker(point, markerOptions));
			  
			  
              marker.openInfoWindowHtml(address);
            }
          }
        );
      }
	return false;
    }
	
	function getLatLon(address, elLat, elLon){
	
	vUrl='/hdf-admin/geoencoder.asp?address=' + address;
		var url = vUrl;

		new Ajax.Request(url, {
			  method: 'get',
			  onSuccess: function(response) {
			  
			    if(!response.responseText.blank()){
					arr=response.responseText.split(",");
					$(elLat).value=arr[2];
					$(elLon).value=arr[3];
				}
			  }
		});

	}