    //<![CDATA[

   var geocoder;
   var map;

   // On page load, call this function

   function loadGM()
   {
      // Create new map object
      map = new GMap2(document.getElementById("map_canvas"));

      // Create new geocoding object
      geocoder = new GClientGeocoder();

      // Retrieve location information, pass it to addToMap()
      var address = $("#txtMapLocation").val();
      if (address != '')
        geocoder.getLocations(address, addToMap);
   }

   // This function adds the point to the map

   function addToMap(response)
   {
      // Retrieve the object
      if (typeof response.Placemark != 'undefined')
     {
      place = response.Placemark[0];

      // Retrieve the latitude and longitude
      point = new GLatLng(place.Point.coordinates[1],
                          place.Point.coordinates[0]);

      // Center the map on this point
      map.setCenter(point, 13);

      // Create a marker
      marker = new GMarker(point);

      // Add the marker to map
      map.addOverlay(marker);

      var locationHtml = $("#map_tooltip").html();

      // Add address information to marker
      marker.openInfoWindowHtml(locationHtml);
     }
     else
     {
      //location not found...
      //$("#map_canvas").addClass("noShow");
     }
   }

    //]]>

  $(document).ready(function() 
  {
    if ($("#emailAddress").val() == null)
    {
      $("#emailAddress").val($("#CookieReviewEmail").val());
    }
    var address = $("#txtMapLocation").val();
    if (address != '')
    {
      loadGM();
    }
    else
    {
      $("#map_canvas").addClass("noShow");
    }
  });
