IE7 Javascript number woes

This one caught me out recently so I thought I would jot it down for the next unsuspecting victim. I am working on a web project that has a display counting down the number of days until Christmas and all was working fine in Firefox, Chrome, Safari etc but of…