        function drawPolylineAB(){
                if (polylineAB != null) map.removeOverlay(polylineAB);
 
                //ÒÉÓÕÅÍ ÏÔÒÅÚÏË
                var polyOptions = {};
                if (document.getElementById('earthChkbx').checked) polyOptions = {geodesic:true};
                polylineAB = new GPolyline([
                        startDisMarker.getLatLng(),
                        finishDisMarker.getLatLng(),
                ], "#2063F1", 2, 1, polyOptions);
                map.addOverlay(polylineAB);
 
 
                document.getElementById('distanceAB').innerHTML = "<span style='color:#666; font-weight:bold;'>òÁÓÓÔÏÑÎÉÅ " + Math.round(polylineAB.getLength()*10)/10 + "Í.</span>";
        }
 
 
        function clearDistance(){
                if (startDisMarker != null || finishDisMarker != null || polylineAB != null){
                        map.removeOverlay(startDisMarker);
                        map.removeOverlay(finishDisMarker);
                        map.removeOverlay(polylineAB);
                }
        }
