    function load(lat, lng, originaladdress) {
        loadMapNew(lat, lng, originaladdress, true)
    }
    
    function loadMap(lat, lng, originaladdress, showcontrols) {
      if (GBrowserIsCompatible()) {
        var x = lat;
        var y = lng;
        if(x!='' && y!='' && x.indexOf(".")==-1 && y.indexOf(".")==-1)
        {
            var latlon = ConvertUTMToGEO(x, y, zone, southhemi);
            if (latlon != null)
            {
                x = latlon[1];
                y = latlon[0];
            }
            else
            {
                x = null;
                y = null;
            }
        }

        if (x==null || y==null || x==0)
        {
            var geocoder = new GClientGeocoder();
            if (geocoder)
		    {
                geocoder.getLatLng(originaladdress, function(point)
		                                            {
		                                                if(point!=null)
		                                                {
		                                                    MapSetCenter(point, showcontrols);
                                                        }
                                                        else
                                                            MapSetCenter(new GLatLng(x, y), showcontrols);
		                                            }
	                               );
	        }
        }
        else
        {
            MapSetCenter(new GLatLng(x, y), showcontrols);
		}
        
      }
    }

    function loadMapNew(lat, lng, originaladdress, showcontrols) {
        if (GBrowserIsCompatible()) {
            var x = lat;
            var y = lng;

            if (x != '' && y != '' && x.toString().indexOf(".") == -1 && y.toString().indexOf(".") == -1) {
                var latlon = ConvertUTMToGEO(x, y, zone, southhemi);
                if (latlon != null) {
                    x = latlon[1];
                    y = latlon[0];
                }
                else {
                    x = null;
                    y = null;
                }
            }
            var geocoder = new GClientGeocoder();
            if (geocoder) {
                geocoder.getLatLng(originaladdress, function(point) {
                    if (point != null) {
                        MapSetCenter(point, showcontrols);
                    }
                    else
                        MapSetCenter(new GLatLng(x, y), showcontrols);
                }
	                               );
            }


        }
    }
    function MapSetCenter(point, showcontrols)
    {
        var map = new GMap2(document.getElementById("map"),{ "locale":'no' });
        map.setCenter(point, 12);
        if (showcontrols)
        {
            map.addControl(new GSmallMapControl());
            map.addControl(new GMapTypeControl());
        }
        var icon = new GIcon();
        icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
        icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
        icon.iconSize = new GSize(12, 20);
        icon.shadowSize = new GSize(22, 20);
        icon.iconAnchor = new GPoint(6, 20);
        icon.infoWindowAnchor = new GPoint(5, 1);
        map.addOverlay(new GMarker(point,icon));
    }
