google maps geocoding
===

hi i am having the same probem as here http://stackoverflow.com/questions/5517120/return-address-from-google-maps-geocoder-v3  , i dont understand how to set my global variable to the return vlaue

i got this at the moment where b returns undefined 

     var a;
     var b;
    function outputGeo(result){
        b = result;	
         }

		
     geocoder.geocode({'latLng': event.latLng},function(results, status) {
			 
			 a =  results[1].formatted_address;
			 outputGeo(a);
            });	 
    alert(b);