    var localSearch = new GlocalSearch();
    var map;
    var postcode="BN162JG";
    var postcodemarker;

    function load() {
      if (GBrowserIsCompatible()) {
        if (document.getElementById("pmhmap")) {
          map = new GMap2(document.getElementById("pmhmap"));
          map.setMapType(G_NORMAL_MAP);
          var mapControl = new GSmallZoomControl();
          map.addControl(mapControl);
          collectpostcode();
          document.getElementById("pmhmap").style.border="1px solid #788ea3";
        }
      }
    }

    function collectpostcode() {
        usePointFromPostcodeCAB(postcode);
    }

    function usePointFromPostcodeCAB(postcode) {

      localSearch.setSearchCompleteCallback(null,
        function() {
          if (localSearch.results[0]) {
            var point = new GLatLng(localSearch.results[0].lat,localSearch.results[0].lng);
            postcodemarker=new GMarker(point);
            map.addOverlay(postcodemarker);
            GEvent.addListener(postcodemarker, "click", function() {
                                               map.openInfoWindowHtml(point, "<b>Princess Marina House</b><br/>BN16 2JG<br/>t: 01903 788970<br/><br/>");
                                             });
            map.setCenter(point, 13);
          }
        });

      return localSearch.execute(postcode + ", UK");
    }
