//my thanks to javascripts.com! ramon_suter@hotmail.com
//year;month;day;hours;minutes;seconds to count down to below
ty=2003;
to=05;
td=7;
th=0;
function myevent() {
ny=0;
no=0;
nd=0;
nh=0;
n=new Date();
year=n.getYear();
if (year<1900) year=year+1900;
 if (year>ty) {t.s.value=0;t.m.value=0;t.h.value=0;t.d.value=0;t.o.value=0;t.y.value=0;}
 else {
  nh=nh+th-n.getHours(); if (nh<0) {nh=24+nh; nd=-1;};
  nd=nd+td-n.getDate(); if (nd<0) {
   x=n.getMonth();
   if (x==0||x==2||x==4||x==6||x==7||x==9||x==11) {nd=31+nd;}
   if (x==3||x==5||x==8||x==10) {nd=30+nd;}
   if (x==1) {if (year/4-Math.floor(year/4)==0) {nd=29+nd;} else {nd=28+nd;}}
  }
  no=-1;
  no=no+to-n.getMonth(); 
  if (no<0) {no=11+no; ny=-1;}
 str="  " + no + " months,  " + nd + " days";
  ny=ny+ty-year; if (ny<0) {str=str;} else {str=str; setTimeout("myevent()",1000);}  
 }
document.t.result.value=str;
}

