
   function showAddress(address) {
    geocoder.getLatLng(
      address, function(point) {
        if (!point) {
          alert("Przepraszamy, adres: "+address + " nie zostal odnaleziony w bazie google");
        } else {
          mapaa.setCenter(point, 14);
          var marker = new GMarker(point);
          mapaa.addOverlay(marker);
					marker.openInfoWindowHtml(text);
      }
     }
   );
 }
 
 
 
 function load() {
   if (GBrowserIsCompatible()) {
     mapaa = new GMap2(document.getElementById("mapaa"));
		  mapaa.addControl(new GMapTypeControl()); 
		mapaa.addControl(new GLargeMapControl());
		
		
		
     geocoder = new GClientGeocoder();
     showAddress(dane);
		 
   }
 }
 




