stop the script?
what about just saying:
exit 1

this:
Case $Timeofday >= 22 AND $Timeofday <= 23

is actually just the same as:
Case $Timeofday = 22

as you only take the our part.
_________________________
!

download KiXnet