

function showAddress(address) {
  var map = new GMap2($("map"));
  map.addControl(new GLargeMapControl());
  var geocoder = new GClientGeocoder();
  geocoder.getLatLng(
    address,
    function(point) {
      if (!point) {
        alert(address + " not found");
      } else {
        map.setCenter(point, 13);
        var marker = new GMarker(point);
        map.addOverlay(marker);
      }
    }
  );
}


function addMarker(image,address){
    var map = new GMap2($("map"));
    map.addControl(new GLargeMapControl());
    var geocoder = new GClientGeocoder();
    var icon = new GIcon();
    icon.image = image;
    icon.iconSize = new GSize(12, 20);
    icon.iconAnchor = new GPoint(6, 20);
    icon.infoWindowAnchor = new GPoint(5, 1);

    geocoder.getLatLng(
        address,
        function(point) {
          if (!point) {
            alert(address + " not found");
          } else {
              map.setCenter(point, 13);
              var marker = new GMarker(point,icon);
              map.addOverlay(marker);
          }
        }
      );
}



