'<
html> '+
'<head> '+
'<meta name="viewport" content="initial-scale=1.0, user-scalable=yes" /> '+
'<script type="text/javascript" src="http://maps.google.com/maps/
api/js?sensor=true"></script> '+
'<script type="text/javascript"> '+
''+
''+
' var geocoder; '+
' var map; '+
' var trafficLayer;'+
' var bikeLayer;'+
' var markersetting;'+
'var markersArray = [];'+
'var runpoints = [];'+
'var runmarkers = [];'+
' var pointnr = 0;'+
''+
''+
' function initialize() { '+
'document.getElementById("new").value = 0;'+
' geocoder = new google.maps.Geocoder();'+
' var latlng = new google.maps.LatLng(53.1148888888888,8.90284166666666); '+
' var myOptions = { '+
' zoom: 18, '+
' center: latlng, '+
'mapTypeControl: true,'+
' mapTypeControlOptions: { '+
' style: google.maps.MapTypeControlStyle.DROPDOWN_MENU '+
' },'+
' navigationControl: true,'+
' navigationControlOptions: { '+
' style: google.maps.NavigationControlStyle.ZOOM_PAN'+
' },'+
' mapTypeId: google.maps.MapTypeId.ROADMAP '+
' }; '+
' map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); '+
' trafficLayer = new google.maps.TrafficLayer();'+
' bikeLayer = new google.maps.BicyclingLayer();'+
' google.maps.event.addListener(map, "click", function(event) {'+
' checkmarker(event.latLng);'+
' });'+
'Markersetoff()'+
' } '+
''+
''+
'function checkmarker(location) { '+
'var bbb = "ja";'+
'var ccc = markersetting;'+
//'alert(ccc);'+
' if (ccc == bbb){ '+
' placeMarker(location);'+
//' alert("ja");'+
'}'+// else { alert("nein");}'+
'}'+
''+
''+
'function outlineMark(number, icon){'+
' if ( runmarkers[number=-1] ) { '+
' map.removeOverlay(runmarkers[number=-1]);'+
' runmarkers[number=-1] = new GMarker (runPoints[number=-1], icon);'+
' map.addOverlay(runmarkers[number=-1]);'+
'}'+
'alert(runmarkers);'+
'}'+
''+
''+
'function placeMarker(location) { '+
//'clearOverlays();'+
//' var pointnr;'+
' if (pointnr == 0){ '+
' var image = "dd-start.png";'+
'}else {'+
' var image = "pointnr + ".png";'+
//'outlineMark(pointnr, image);'+
'markersArray[0].setImage(image);'+
'pointnr=+1;'+
' var image = "dd-end.png";'+
'}'+
' var clickedLocation = new google.maps.LatLng(location);'+
' var marker = new google.maps.Marker({ '+
' position: location,'+
' map: map,'+
' icon: image'+
' });'+
' pointnr += 1;'+
''+
' map.setCenter(location);'+
'document.getElementById("koordinate").value = location;'+
'document.getElementById("new").value = 1;'+
'markersArray.push(marker);'+
'runpoints.push(location);'+
'runmarkers.push(marker);'+
'}'+
(...)