maxday =new Date("December 31, 2004");
today=new Date();
totday = Math.ceil((maxday - today)/86400000);
document.writeln(totday);