This code calls my function and everything works almost perfectly. Perfectly, except if I try to put an alert in to inform the user when the countdown reaches zero, it keeps popping up I haven't been able to find how to turn off the function once it is called.

<input name="startcount" type="button" onClick="setInterval('counterMod()',1000)" value="Start Countdown">