function time1()
{
now=new Date();
m=now.getMonth();
//n=now.getYear()
//a=2008-now.getYear();
b=now.getMonth();
if(b=6)b=1;
else b=0;
if(m=1,3,5,7,8,10,12){c=40-now.getDate()}
if(m=4,6,9){c=39-now.getDate()}
if(m=2){c=37-now.getDate()}
if(n=2004,2008){c=38-now.getDate()}
e="0"+24-now.getHours();
f="0"+59-now.getMinutes();
g="0"+60-now.getSeconds();
if(e>10){e=24-now.getHours()}
if(f>10){f=59-now.getMinutes()}
if(g>10){g=60-now.getSeconds()}
document.Time.CLOCK.value="离2008北京奥运会还有"+c+"天"+e+"小时"+f+"分"+g+"秒"
setTimeout( 'time1()',1000)
}
