    //<![CDATA[
   
 function loadMap(lat,lon,naam,straat,plaats,telefoon,email){ 
     if (GBrowserIsCompatible()) { 
      
      // A function to create the marker and set up the event window
      // Dont try to unroll this function. It has to be here for the function closure
      // Each instance of the function preserves the contends of a different instance
      // of the "marker" and "html" variables which will be needed later when the event triggers.    
      function createMarker(point,html) {
        var marker = new GMarker(point);
        
        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(html);
        });
        marker.openInfoWindowHtml(html);
        return marker;
      }
      
      

      // Display the map, with some controls and set the initial location 
      var map = new GMap2(document.getElementById("map"));
      map.addControl(new GLargeMapControl());
      map.addControl(new GMapTypeControl());
      map.setCenter(new GLatLng(lat,lon),16);
    
      // Set up three markers with info windows 
      
      var point = new GLatLng(lat,lon);
      var marker = createMarker(point,  '<div style="height:140px; color:#4A1646;background-color:#fee9fc; padding:3px">' +
                                        '<form action="http://maps.google.nl/maps" method="get" target="_blank">' +
                                        '<p style="text-align:left;font-size:12px;margin-top:0px;margin-right:0px; color:#4A1646">' +
                                        '<b>'+naam+'</b>' +
                                        '<br /> '+straat+' <br />'+plaats+
                                        '<br /> ' +telefoon+ ' <br />' +email+ '</br ></font>'+  
                                        '</p><p style="text-align:center;">'+    
                                        '<label style="font-size:11px; color:#4A1646">Vul hier uw woonplaats in</label><br>'+
                                        '<input style="color:#525150;background-color:#FFFFFF;margin-left:10px;font-size:10px;margin-bottom:5px;" size="40" maxlength="40" name="saddr" id="frm_inputAdress" value="" type="text" /><br>' +
                                        '<input style="color:#525150;background-color:#FFFFFF;margin-left:10px;font-size:10px;" value="Geef routebeschrijving" type="submit" />' +
                                        '<input style="color:#525150;background-color:#FFFFFF;margin-left:10px;font-size:11px;" name="daddr" id="frm_fixedAdress" value="'+lat+', '+lon+' ('+naam+')" type="hidden" /></p>' +
                                        '</form></div>');
      map.addOverlay(marker);
          
    }
    
    // display a warning if the browser was not compatible
    else {
      alert("Sorry, De map kan niet worden getoond omdat uw browser deze niet ondersteund.");
    }
 }

    // This Javascript is based on code provided by the
    // Community Church Javascript Team
    // http://www.bisphamchurch.org.uk/   
    // http://econym.org.uk/gmap/

    //]]>

