//my thanks to javascripts.com! ramon_suter@hotmail.com
//year;month;day;hours;minutes;seconds to count down to below
function JulDay (d, m, y, u){
 if (y<1900) y=y+1900
 if (m<=2) {m=m+12; y=y-1}
 A = Math.floor(y/100);
 JD =  Math.floor(365.25*(y+4716)) + Math.floor(30.6001*(m+1)) + d - 13 -1524.5 + u/24.0;
 return JD
}

function myevent() {

JD2 = JulDay(8, 6, 2004, 8);
dat = new Date();
day = dat.getDate();
month = dat.getMonth()+1;
hours = dat.getHours();
JD1 = JulDay(day, month, 2004, hours);
dif = JD2 - JD1;
//str = "" + Math.floor(dif) + " days";
str = "" + Math.floor(JD2-JD1) + " Tage   " + Math.round(24*(JD2-JD1-Math.floor(JD2-JD1))) + " Stunden";
setTimeout("myevent()",1000);


document.t.result.value=str;
}

