document.addEventListener('DOMContentLoaded', function () {
    var isDisposed = document.getElementById('isDisposed');
    var disposalDateField = document.getElementById('disposalDateField');

    if (isDisposed && disposalDateField) {
        isDisposed.addEventListener('change', function () {
            disposalDateField.style.display = this.checked ? '' : 'none';
        });
    }
});
