If checkbox.checked then the interval of the autoadmit() should be very small like 1000, but when the it is not checked then the interval of the autoadmit() sho
checkbox.checked