function addMarker(map, point, zoom, map_id) {
  map.setCenter(point, zoom);
  var marker = new GMarker(point);
  map.addOverlay(marker);
}

function showAddress(map, address, zoom, map_id) {

  // If there is a lat_long then plot that
  if(match = address.match(/(-?\d+\.\d+),(-?\d+\.\d+)/)) {
    addMarker(map, new GLatLng(match[1], match[2]), zoom, map_id);
  } else {
    var geocoder = new GClientGeocoder();
    geocoder.getLatLng(
      address,
      function(point) {
        if (point) {
          addMarker(map, point, zoom, map_id);
        }
      }
    );
  }
}