/*------------------Straßensuche----------------------------------*/
function addAddressToMap(response) {

      map.removeOverlay(strmarker);
          
      if (!response || response.Status.code != 200)
            {
        alert("Die Adresse konnte nicht gefunden werden");
            }
      else
           {
               place = response.Placemark[0];
               if ((!response || place.AddressDetails.Accuracy >5) && (!response || place.AddressDetails.Accuracy <9))
                      {
                           point = new GLatLng(place.Point.coordinates[1],
                           place.Point.coordinates[0]);
                           strmarker = new GMarker(point);
                           map.addOverlay(strmarker);
                           map.setCenter(point);   
                           strmarker.openInfoWindowHtml(place.address);
                       }  
               else 
                      {
                         alert("Die Adresse konnte nicht gefunden werden"); 
                      }
           }
}


function showLocation() {
      var address = document.getElementById("strasse").value +', ' +document.getElementById("plz").value + ' '+document.getElementById("ort").value 
      geocoder.getLocations(address, addAddressToMap);
    }

