var eventdate = new Date("July 15, 2006 11:00:00 GMT+2");
var timer = null;

function countdown() {
d=new Date();
count=Math.floor((eventdate.getTime()-d.getTime())/1000);
if(count<=0) {
cl.days.value="0";
cl.hours.value="0";
cl.mins.value="0";
cl.secs.value="0";
return;
}

sek=(count%60);
count=Math.floor(count/60);
min=(count%60);
count=Math.floor(count/60);
tun=(count%24);
count=Math.floor(count/24);
paiv=count;

myclock = '';
myclock += '<strong>' + paiv + ' days, ' + tun + ' hours, ' + min + ' minutes and ' + sek + ' seconds to go!</strong>';

if (document.getElementById) {
document.getElementById("laskuri").innerHTML=myclock;
document.getElementById("temp").innerHTML='';
}

timer=setTimeout("countdown()",999);
}

function nocountdown() {
if (document.getElementById) {
document.getElementById("laskuri").innerHTML='';
document.getElementById("temp").innerHTML='';
clearTimeout(timer);
}
}
