// $scope, $element, $attrs, $injector, $sce, $timeout, $http, $ionicPopup, and $ionicPopover services are available


$scope.start = function() {


   if ($scope.app.params.checkbox_1_selected == "false" && $scope.app.view.Home.wdg["checkbox-1"].disabled == false) {

    //$scope.app.view.Home.wdg["checkbox-2"].disabled = false;
    $scope.app.view.Home.wdg["checkbox-1"].disabled = true;

  }
  else if ($scope.app.params.checkbox_2_selected == "false" && $scope.app.view.Home.wdg["checkbox-2"].disabled == false) {

    $scope.app.view.Home.wdg["checkbox-1"].disabled = true;
    $scope.app.view.Home.wdg["checkbox-2"].disabled = true;

  }
  else if ($scope.app.params.checkbox_3_selected == "false" && $scope.app.view.Home.wdg["checkbox-3"].disabled == false) {

    $scope.app.view.Home.wdg["checkbox-2"].disabled = true;
    $scope.app.view.Home.wdg["checkbox-3"].disabled = true;

  }


  else if ($scope.app.params.checkbox_4_selected == "false" && $scope.app.view.Home.wdg["checkbox-4"].disabled == false) {

    $scope.app.view.Home.wdg["checkbox-3"].disabled = true;
    $scope.app.view.Home.wdg["checkbox-4"].disabled = true;

  } else if ($scope.app.params.checkbox_5_selected == "false" && $scope.app.view.Home.wdg["checkbox-5"].disabled == false) {

    $scope.app.view.Home.wdg["checkbox-4"].disabled = true;
    $scope.app.view.Home.wdg["checkbox-5"].disabled = true;


  } else if ($scope.app.params.checkbox_6_selected == "false" && $scope.app.view.Home.wdg["checkbox-6"].disabled == false) {

    $scope.app.view.Home.wdg["checkbox-5"].disabled = true;
    $scope.app.view.Home.wdg["checkbox-6"].disabled = true;
    
  } else if ($scope.app.params.checkbox_6a_selected == "false" && $scope.app.view.Home.wdg["checkbox-6a"].disabled == false) {

    $scope.app.view.Home.wdg["checkbox-6"].disabled = true;
    $scope.app.view.Home.wdg["checkbox-6a"].disabled = true;

  } else if ($scope.app.params.checkbox_7_selected == "false" && $scope.app.view.Home.wdg["checkbox-7"].disabled == false) {

    $scope.app.view.Home.wdg["checkbox-6a"].disabled = true;
    $scope.app.view.Home.wdg["checkbox-7"].disabled = true;


  } else if ($scope.app.params.checkbox_8_selected == "false" && $scope.app.view.Home.wdg["checkbox-8"].disabled == false) {

    $scope.app.view.Home.wdg["checkbox-7"].disabled = true;
    $scope.app.view.Home.wdg["checkbox-8"].disabled = true;
  } else if ($scope.app.params.checkbox_9_selected == "false" && $scope.app.view.Home.wdg["checkbox-9"].disabled == false) {

    $scope.app.view.Home.wdg["checkbox-8"].disabled = true;
    $scope.app.view.Home.wdg["checkbox-9"].disabled = true;
  } else if ($scope.app.params.checkbox_10_selected == "false" && $scope.app.view.Home.wdg["checkbox-10"].disabled == false) {

    $scope.app.view.Home.wdg["checkbox-9"].disabled = true;
    $scope.app.view.Home.wdg["checkbox-10"].disabled = true;
  } else if ($scope.app.params.checkbox_11_selected == "false" && $scope.app.view.Home.wdg["checkbox-11"].disabled == false) {

    $scope.app.view.Home.wdg["checkbox-10"].disabled = true;
    $scope.app.view.Home.wdg["checkbox-11"].disabled = true;
  } else if ($scope.app.params.checkbox_12_selected == "false" && $scope.app.view.Home.wdg["checkbox-12"].disabled == false) {

    $scope.app.view.Home.wdg["checkbox-11"].disabled = true;
    $scope.app.view.Home.wdg["checkbox-12"].disabled = true;
  } else if ($scope.app.params.checkbox_13_selected == "false" && $scope.app.view.Home.wdg["checkbox-13"].disabled == false) {

    $scope.app.view.Home.wdg["checkbox-12"].disabled = true;
    $scope.app.view.Home.wdg["checkbox-13"].disabled = true;
  } else if ($scope.app.params.checkbox_14_selected == "false" && $scope.app.view.Home.wdg["checkbox-14"].disabled == false) {

    $scope.app.view.Home.wdg["checkbox-13"].disabled = true;
    $scope.app.view.Home.wdg["checkbox-14"].disabled = true;
  } else if ($scope.app.params.checkbox_15_selected == "false" && $scope.app.view.Home.wdg["checkbox-15"].disabled == false) {

    $scope.app.view.Home.wdg["checkbox-14"].disabled = true;
    $scope.app.view.Home.wdg["checkbox-15"].disabled = true;
  } else if ($scope.app.params.checkbox_16_selected == "false" && $scope.app.view.Home.wdg["checkbox-16"].disabled == false) {

    $scope.app.view.Home.wdg["checkbox-15"].disabled = true;
    $scope.app.view.Home.wdg["checkbox-16"].disabled = true;
  } else if ($scope.app.params.checkbox_17_selected == "false" && $scope.app.view.Home.wdg["checkbox-17"].disabled == false) {

    $scope.app.view.Home.wdg["checkbox-16"].disabled = true;
    $scope.app.view.Home.wdg["checkbox-17"].disabled = true;
  } else if ($scope.app.params.checkbox_18_selected == "false" && $scope.app.view.Home.wdg["checkbox-18"].disabled == false) {

    $scope.app.view.Home.wdg["checkbox-17"].disabled = true;
    $scope.app.view.Home.wdg["checkbox-18"].disabled = true;
  } else if ($scope.app.params.checkbox_19_selected == "false" && $scope.app.view.Home.wdg["checkbox-19"].disabled == false) {

    $scope.app.view.Home.wdg["checkbox-18"].disabled = true;
    $scope.app.view.Home.wdg["checkbox-19"].disabled = true;
    
  } else if ($scope.app.params.checkbox_19a_selected == "false" && $scope.app.view.Home.wdg["checkbox-19a"].disabled == false) {

    $scope.app.view.Home.wdg["checkbox-19"].disabled = true;
    $scope.app.view.Home.wdg["checkbox-19a"].disabled = true;
  } else if ($scope.app.params.checkbox_20_selected == "false" && $scope.app.view.Home.wdg["checkbox-20"].disabled == false) {

    $scope.app.view.Home.wdg["checkbox-19a"].disabled = true;
    $scope.app.view.Home.wdg["checkbox-20"].disabled = true;
  } else if ($scope.app.params.checkbox_21_selected == "false" && $scope.app.view.Home.wdg["checkbox-21"].disabled == false) {

    $scope.app.view.Home.wdg["checkbox-20"].disabled = true;
    $scope.app.view.Home.wdg["checkbox-21"].disabled = true;
  } else if ($scope.app.params.checkbox_22_selected == "false" && $scope.app.view.Home.wdg["checkbox-22"].disabled == false) {

    $scope.app.view.Home.wdg["checkbox-21"].disabled = true;
    $scope.app.view.Home.wdg["checkbox-22"].disabled = true;
  } else if ($scope.app.params.checkbox_23_selected == "false" && $scope.app.view.Home.wdg["checkbox-23"].disabled == false) {

    $scope.app.view.Home.wdg["checkbox-22"].disabled = true;
    $scope.app.view.Home.wdg["checkbox-23"].disabled = true;
  } else if ($scope.app.params.checkbox_24_selected == "false" && $scope.app.view.Home.wdg["checkbox-24"].disabled == false) {

    $scope.app.view.Home.wdg["checkbox-23"].disabled = true;
    $scope.app.view.Home.wdg["checkbox-24"].disabled = true;
  } else if ($scope.app.params.checkbox_25_selected == "false" && $scope.app.view.Home.wdg["checkbox-25"].disabled == false) {

    $scope.app.view.Home.wdg["checkbox-24"].disabled = true;
    $scope.app.view.Home.wdg["checkbox-25"].disabled = true;
  } else if ($scope.app.params.checkbox_26_selected == "false" && $scope.app.view.Home.wdg["checkbox-26"].disabled == false) {

    $scope.app.view.Home.wdg["checkbox-25"].disabled = true;
    $scope.app.view.Home.wdg["checkbox-26"].disabled = true;


  }
   else if ($scope.app.params.checkbox_27_selected == "false" && $scope.app.view.Home.wdg["checkbox-27"].disabled == false) {

    $scope.app.view.Home.wdg["checkbox-26"].disabled = true;
    $scope.app.view.Home.wdg["checkbox-27"].disabled = true;


  }
}