    	var localSearch = new GlocalSearch();
		
		function usePointFromPostcode(postcode, callbackFunction) {
		  localSearch.setSearchCompleteCallback(null, 
   			 function() {
      			if (localSearch.results[0]) {    
      				var resultLat = localSearch.results[0].lat;
        			var resultLng = localSearch.results[0].lng;
        			var point = new GLatLng(resultLat,resultLng);
        			callbackFunction(point);
      			}else{
        		//	alert("Postcode not found!");
      			}
    		});  
  			localSearch.execute(postcode + ", UK");
		}


	function showMap(point) {
	  if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(new GLatLng(point.lat(), point.lng()), 13);
        geocoder = new GClientGeocoder();
		var marker = new GMarker(point);
        map.addOverlay(marker);
		map.addControl(new GSmallMapControl());
      }
    }


	function loadmap(postcode) {
		usePointFromPostcode(postcode, showMap);
	}
	
	
      
	




