

function loadMap(Lat,Lng,sMapAddrs) {
	var map
	var geocoder
	//alert(Lat);
			if (GBrowserIsCompatible()) {
        document.getElementById("map").style.height=450;
				map = new GMap2(document.getElementById("map"));
				
				//document.getElementById("map").style.width=1000;
				//document.getElementById("map").style.height=350;
				point = new GLatLng(Lat, Lng);
				map.addControl(new GMapTypeControl());
				//alert(point);
				
				//GEvent.addListener(map, "click", function() {  alert("You clicked the map.");});
				
				map.setCenter(new GLatLng(Lat, Lng), 14);
				map.setCenter(point, 14);
      	geocoder = new GClientGeocoder();
			 	var marker = new GMarker(point);
			 	map.addOverlay(marker);
			 	marker.openInfoWindowHtml(sMapAddrs);
				map.addControl(new GLargeMapControl());
      }
    }



function loadNew(address) {
	alert(address);
  geocoder.getLatLng(
    address,
    function(point) {
      if (!point) {
        alert(address + " not found");
      } else {
        map.setCenter(point, 13);
        var marker = new GMarker(point);
        map.addOverlay(marker);
        marker.openInfoWindowHtml(address);
      }
    }
  );
}
    
		function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        //map.setCenter(new GLatLng(37.4419, -122.1419), 13);
				map.setCenter(new GLatLng(37.5419, -122.0619), 14);
      }
    }
