help with alarm code

i still have no posted the changes that NIck suggested....