    var map = null;
	    var geocoder = null;
	
			var flameIcon = new GIcon(G_DEFAULT_ICON);
			flameIcon.image = "http://www.flamingdesks.com/app/images/gmap-flame-icon.png";
			flameIcon.shadow = "http://www.flamingdesks.com/app/images/gmap-flam-icon-shadow.png";
			
			// Set up our GMarkerOptions object
			markerOptions = { icon:flameIcon , draggable: true};

	
	    function initialize() {
	      if (GBrowserIsCompatible()) {
	        map = new GMap2(document.getElementById("map_canvas"));
	        map.setCenter(new GLatLng(37.4419, -122.1419), 13);
	        geocoder = new GClientGeocoder();
	        
	        showAddress(document.frmMain.address.value);
	      }
	    }
	
	    function showAddress(address) {
	      if (geocoder) {
	        geocoder.getLatLng(
	          address,
	          checkAddress
	        );
	      }
	    }
	    
	    function checkAddress(point)
	    {
        if (!point) {
         	alert(" not found");
        } else {
          map.setCenter(point, 13);
          var marker = new GMarker(point, markerOptions);
          
          GEvent.addListener(marker, "dragend", function() {
				  	marker.openInfoWindowHtml("Lattitude : "+marker.getPoint().lat()+"<br/>Longitude : "+marker.getPoint().lng());

				  });
          
          map.addOverlay(marker);
          marker.openInfoWindowHtml("Lattitude : "+marker.getPoint().lat()+"<br/>Longitude : "+marker.getPoint().lng());

        }	    	
	    }
	    
	    
