var eventdate = new Date("August 20, 2006, 08:00:00");
function toSt(n) {
  s="";
  if(n<10) s+="0";
  return s+n.toString();
}
 
function countdown() {

  d=new Date();
  count=Math.floor((eventdate.getTime()-d.getTime())/1000);
 

 
  if(count<=0)
    {totalstring = "--ÀÏ --½Ã°£ --ºÐ --ÃÊ"
	clock1.innerText = totalstring
    return;
   }
  string1=toSt(count%60);
  count=Math.floor(count/60);
  string2=toSt(count%60);
  count=Math.floor(count/60);
  string3=toSt(count%24);
  count=Math.floor(count/24);
  string4=count;    

  totalstring = string4+"ÀÏ "+string3+"½Ã°£ "+string2+"ºÐ "+string1+"ÃÊ "
  
  clock1.innerText = totalstring
  setTimeout("countdown()",1000);
}
