sDiv.addEventListener('change', () => {
            const checkboxes = document.querySelectorAll('input[name="reason"]');
            const allChecked = Array.from(checkboxes).every(checkbox => checkbox.checked);
            selectAllCheckbox.checked = allChecked;
        });
    }

    function requestType(reqData) {
        document.getElementById('loading').style.display = 'flex';

        fetch(params.url_type, {
            method: 'POST',
            headers: {
                'Content-Type': 'applica