function zoomIn(map,clat,clong,zoom){
	map.setCenter(new GLatLng(clat,clong),zoom);
}

//This function is called when we look for a postcode so we use it to center the map
function gmap_map_postcode(lat, lon){
   alert('ooooo');
   zoomIn(map,lat,lon,8);
}
  // A function to create the marker and set up the event window
  // Dont try to unroll this function. It has to be here for the function closure
  // Each instance of the function preserves the contends of a different instance
  // of the "marker" and "html" variables which will be needed later when the event triggers.    
  function createMarker(point,html) {
        var marker = new GMarker(point);
        GEvent.addListener(marker, "click", function() {
        marker.openInfoWindowHtml(html);
        });
        return marker;
  }

function gmap_geocode_postcode(postcode){

    var s = document.createElement('script');
    s.src = 'http://geo.localsearchmaps.com/?cb=gmap_map_postcode&use=google2&country=us&zip=' + postcode;
    s.type = 'text/javascript';
    document.getElementsByTagName('head')[0].appendChild(s);

    //<input type="button" value="lookup postcode (UK)" onclick="gmap_geocode_postcode(document.getElementById('edit-location-postal_code').value); return false;">
}