Gummo: If that is the case, shouldn't it be that way on all of the IF/ELSE statements? The third IF statement and the ELSE statement do not make these checks.
if (!$dialog(chrom)) { .timerchrom off | return }
You could just have this at the beginning, and it will not only keep from flooding, but it would turn off the timer that would otherwise continue running, since a high-res timer would be pointless to keep running when it consumes computer resources.