var now = new Date();
// set this value to the countdown date.
var then = new Date("January 1, 2100");
var gap = then.getTime() - now.getTime();
gap = Math.floor(gap / (1000 * 60 * 60 * 24));
document.write(gap);
days 'til the turn of the next century!