Hi,
for more details on timer in javascript, you may check out the following link..
mindstick.com/Articles/e98037b8-29cc-4419-9158-a6542e29f276/?Creating%20Simple%20Timer%20in%20Java%20Script

Thanks!!!!!