anchor.diff:      
       
       <script>
  -        document.getElementById('datecheckmap').onchange = function() {
  -        document.getElementById('enddatepickermap').disabled = !this.checked;
  -        document.getElementById('startdatepickermap').disabled = !this.checked;
  -        document.getElementById('enddatepickermap').value = "";
  -        document.getElementById('startdatepickermap').value = "";
  -        $("#enabledatemap").toggle("fast");
  +        document.getElementById('datecheck').onchange = function() {
  +        document.getElementById('enddatepicker').disabled = !this.checked;
  +        document.getElementById('startdatepicker').disabled = !this.checked;
  +        document.getElementById('enddatepicker').value = "";
  +        document.getElementById('startdatepicker').value = "";
  +        $("#enabledate").toggle("fast");
           };  
       </script>
       
  
positive.code:         for (var i=0; i< userJourneyPoints.length; i++) {
              
              var lat = coords[coordsToUse[i]][0];
              lat = parseFloat(lat);
              //var otherlat = lat.toFixed(5);
              //parseFloat(lat);
              
              var lng = coords[coordsToUse[i]][1];
              lng = parseFloat(lng);
              //var otherlng = lng.toFixed(5);
              //parseFloat(lng);
              
              if (lat===0){    
              }
              else{
              var latLng = new google.maps.LatLng(lat, lng);
              pointdata.push(latLng);
                  
  
negative.code:               
              <div class="form-group">
                  <label class="form-check-label">
                      <input class="form-check-input" type="checkbox" id="datecheck" checked value="1">
                          Search By Date
                  </label>
              </div>
                
              <div class="form-group " id="enabledate">
                  <label for="startdatepicker"> Start Date</label>
                  <input type="text" class="form-control" name = "startdatepicker" id="startdatepicker" placeholder="2000/01/01" required>
  
                  <label for="enddatepicker"> End Date </label> 
                  <input type="text" class="form-control" name = "enddatepicker" id="enddatepicker" placeholder="2085/12/31" required> 
              </div>
          <!---------------------------- PART 1 END ------------------------------>
          
  