Help with a timed relay circuit pleaaase!

The ATmega processor on which the Arduino is based has a built-in "watchdog timer" that can reset the Arduino if it doesn't go through loop() for a while:

http://tushev.org/articles/electronics/48-arduino-and-watchdog-timer