var hzWeek= new Array("日","一","二","三","四","五","六","日");
function cweekday(wday){return hzWeek[wday];}
nextday=false;last0=t0;lmonth=0;lday=0;lleap=false;
function getlday(){lObj=new Lunar(nyear,nmonth-1,nday);lmonth=GetcMon(lObj.month);lday=GetcDay(lObj.day);lleap=lObj.isLeap;}
getlday();

//skipcount=0;

function NewTick(){noww=new Date();t1=noww.getTime();
tnext=last0+200;
if(t1<tnext){t1=tnext;}
else if((t1-tnext)>45000&last0!=t0){t1=tnext;}
last0=t1;
noww.setTime(t1+dectime);
if(noww.getDate()!=nday){
nextday=true;
nyear=noww.getFullYear();
nmonth=noww.getMonth()+1;
nwday=noww.getDay();
nday=noww.getDate();
getlday();}
nhrs=noww.getHours();nmin=noww.getMinutes();nsec=noww.getSeconds();
}
dectime=new Date(nyear,nmonth-1,nday,nhrs,nmin,nsec).getTime()-t0;
