
		
		  function codeAddress() {
		  var geocoder;
		  var map;
		  
		    geocoder = new google.maps.Geocoder();
		    var latlng = new google.maps.LatLng(52.06, 5.07);
		    var myOptions = {
		      zoom: 13,
		      center: latlng,
		      mapTypeId: google.maps.MapTypeId.ROADMAP,
		      disableDefaultUI: true
		    }
		    map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
		  
		    var address = $("input[name=zipcode]").val() + " Nederland";
		    
		    if (geocoder) {
		      geocoder.geocode( { 'address': address}, function(results, status) {
		        if (status == google.maps.GeocoderStatus.OK) {
		          map.setCenter(results[0].geometry.location);
		          var marker = new google.maps.Marker({
		              map: map, 
		              position: results[0].geometry.location
		          });
		          tmp = results[0].geometry.location;
		          coords = String(tmp).split(',');
		          $("input[name=location_lat]").val(coords[0].replace("(",""));
		          $("input[name=location_lon]").val(coords[1].replace(")",""));
		        } else {
		          alert("Geocode was not successful for the following reason: " + status);
		        }
		      });
		    }
		  }
