my aim is to insert a mysql 14 character timestamp (yyyymmddhhss) into a javascript function and display a countdown as follow:

5 Days

If it makes it any easier, which im guessing it does, I can insert the values one by one (eg. end date, month, hour, etc. ) Currently im formatting the timestamp with php to display as above, however it would be nifty to have an actual countdown.

On top of that, i'd like it to say "closed!" when the countdown reaches 0.

Could someone point me in the right direction to get started with this?

I think I found a fairly cool sample however will I get a clash given that the element ID's will be the same?