// JavaScript Document

function daysUntil()
{
//Set the two dates
var millennium =new Date(2010, 1, 13); //Month is 0-11 in JavaScript
today=new Date();
//Get 1 day in milliseconds
var one_day=1000*60*60*24;

//Calculate difference btw the two dates, and convert to days
document.write(Math.ceil((millennium.getTime()- today.getTime())/(one_day)));
}
