
function GAjaxMoveMarker(latlng, options){
    this.latlng = latlng;
    this.ajaxClass = options.ajaxClass || "no";
    this.ajaxMethod = options.ajaxMethod || "no";
    this.ajaxParams = options.ajaxParams || "no";
    this.ajaxTargetId = options.ajaxTargetId || "no";
    
    GMarker.apply(this, arguments);
}

GAjaxMoveMarker.prototype = new GMarker(new GLatLng(0, 0));

GAjaxMoveMarker.prototype.initialize = function(map) {
	// Do the GMarker constructor first.
	GMarker.prototype.initialize.apply(this, arguments);
	this.map = map;
}

GAjaxMoveMarker.prototype.redraw = function(force) {
	GMarker.prototype.redraw.apply(this, arguments);
	if (!force) return;
}

GAjaxMoveMarker.prototype.remove = function() {
	GMarker.prototype.remove.apply(this, arguments);
}

GAjaxMoveMarker.prototype.execute = function(point) {
	ajaxClassCall(this.ajaxClass, this.ajaxMethod, this.ajaxParams+","+(point.lat())+","+(point.lng()), this.ajaxTargetId);
}
