// Creates Marker and adds it to Map
	function addMarker(latitude, longitude, htmltxt, icon) {
		var point = new GLatLng(latitude, longitude);
	  	var marker = new GMarker(point, icon);
	  	if(htmltxt != ''){
			GEvent.addListener(marker, "click", 
				function() {
					marker.openInfoWindowHtml('<div align="left">'+htmltxt+'</div>', {maxWidth: 400});
				}
			);
		}		
		map.addOverlay (marker);		
	}
// Creates an Icon
	function createIcon(image, width, height, anch_x, anch_y, wach_x, wach_y){
		var icon = new GIcon();
		icon.image = image;
		icon.iconSize = new GSize(width, height);			
		icon.iconAnchor = new GPoint(anch_x, anch_y);
		icon.infoWindowAnchor = new GPoint(wach_x, wach_y);
		return icon;
	}
// Zentriert die Karte auf einen Punkt
	function center_it(latitude, longitude, zoom){	
		map.setCenter(new GLatLng(latitude, longitude, zoom));	
		map.setZoom(zoom); 
	}
// Erstellt ein Objekt und entfernt alle bisherigen
	function addObjekt(latitude, longitude, htmltxt, icon, zoom){
		map.clearOverlays();
		addMarker2(latitude, longitude, htmltxt, icon);		
		center_it(latitude, longitude, zoom);
	}
	function addMarker2(latitude, longitude, htmltxt, icon) {
		var point = new GLatLng(latitude, longitude);
	  	var marker = new GMarker(point, icon);

	  	if(htmltxt != ''){
			GEvent.addListener(marker, "click", 
				function() {
					marker.openInfoWindowHtml('<div align="left">'+htmltxt+'</div>', {maxWidth: 400});
				}
			);
			
		}
		
		map.addOverlay (marker);	
		if(htmltxt != ''){
			marker.openInfoWindowHtml('<div align="left">'+htmltxt+'</div>', {maxWidth: 400});		
		}
	}