anchor.diff:            $('.general-fields').hide();
           }
   
  -        if (onlyEquipment){
  -          $('.equipment-related-only').fadeIn();
  -        }
  -        else{
  -          $('.equipment-related-only').hide();
  -          $('.equipment-related-only option').prop('selected', false);
  -          $('.equipment-related-only input').val('');
  -        };
  -
  -        if (onlyVehicles){
  -          $('.vehicle-related-only').fadeIn();
  -        }
  -         else{
  -          $('.vehicle-related-only').hide();
  -          $('.vehicle-related-only option').prop('selected', false);
  -          $('.vehicle-related-only input').val('');
  -        }
  -
  -        if(onlyFacilities){
  -          $('.facility-related-only').fadeIn();
  -        } else{
  -          $('.facility-related-only').hide();
  -          $('.facility-related-only option').prop('selected', false);
  -          $('.facility-related-only input').val('');
  -        };
  -
  -        if (noTypeSpecified)
  -          $('.all-asset-only').fadeIn();
  -        else{
  -          $('.all-asset-only').hide();
  -          $('.all-asset-only option').prop('selected', false);
  -          $('.all-asset-only input').val('');
  -        }
  +        hideOrShow('.equipment-related-only', onlyEquipment);
  +        hideOrShow('.vehicle-related-only', onlyVehicles);
  +        hideOrShow('.facility-related-only', onlyFacilities);
  +        hideOrShow('.all-asset-only', noTypeSpecified);
   
           // Reset all disabled form fields so that it can correctly
           // determine which fields to disable
  
positive.code:         };
  
          // These variables detect the class names of the types the user selected
          var selectedEquipment = ($.inArray("Equipment", classNames) !== -1);
  
          var selectedVehicles = ($.inArray("Vehicle", classNames) !== -1);
  
negative.code:         var facilityFields = (selectedTransitFacility || selectedSupportFacility)
          var vehicleFields = (selectedVehicles || selectedSupportVehicles || selectedRailCars || selectedLocomotives);
  
          var onlyEquipment = (selectedEquipment && !vehicleFields && !facilityFields && !selectedAny);
          var onlyVehicles = (vehicleFields && !selectedEquipment && !facilityFields && !selectedAny);
          var onlyFacilities = (facilityFields && !vehicleFields && !selectedEquipment && !selectedAny);
  
          var noTypeSpecified = (!selectedEquipment && !vehicleFields && !facilityFields);
  
  