var eventdate = new Date("June 26, 2010 10:00:00 GMT"); //Enter Date Here

function toSt(n)
{s=""
if(n<10) s+="0"
return s+n.toString();
}
function countdown()
{cl=document.clock;
d=new Date();
count=Math.floor((eventdate.getTime()-d.getTime())/1000);
if(count<=0)
{cl.days.value ="Go";
cl.hours.value="Wah";
cl.mins.value="Nee";
cl.secs.value="";
cl.message.value ="Wah-Nee Time!";  //Message for when Time is up
//alert("Wah-Nee Time!"); // Message which appears when time is out
return;
}
cl.secs.value=toSt(count%60);
count=Math.floor(count/60);
cl.mins.value=toSt(count%60);
count=Math.floor(count/60);
cl.hours.value=toSt(count%24);
count=Math.floor(count/24);
cl.days.value=count; 
setTimeout("countdown()",500);
cl.message.value ="Time Til Wah-Nee 2010";   //Enter Message Here
//cl.message.value ="Time Left at Camp";   //Enter Message Here
}


