function calcage(secs, num1, num2, addDay, seconds) { if (addDay == 1){ s = ((Math.floor(secs/num1))).toString(); } else{ s = ((Math.floor(secs/num1))%num2).toString(); } if (LeadingZeros33777 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33777(secs) { if (secs < 0) { document.getElementById("cntdwns33777").innerHTML = FinishMessages33777; return; } DisplayStrs33777 = DisplayFormats33777.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33777 = DisplayStrs33777.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33777 = DisplayStrs33777.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33777 = DisplayStrs33777.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33777").innerHTML = DisplayStrs33777; if (CountActives33777) //alert(SetTimeOutPeriods33777); setTimeout("CountBacks33777(" + (secs+CountSteppers33777) + ")", SetTimeOutPeriods33777); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33777)=="undefined") BackColors33777 = ""; if (typeof(ForeColors33777)=="undefined") ForeColors33777= "white"; if (typeof(TargetDates33777)=="undefined") TargetDates33777 = "04/04/2026 10:00:00 PM"; if (typeof(DisplayFormats33777)=="undefined") DisplayFormats33777 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33777)=="undefined") CountActives33777 = true; if (typeof(FinishMessages33777)=="undefined") FinishMessages33777 = ""; if (typeof(CountSteppers33777)!="number") CountSteppers33777 = -1; if (typeof(LeadingZeros33777)=="undefined") LeadingZeros33777 = true; CountSteppers33777 = Math.ceil(CountSteppers33777); if (CountSteppers33777 == 0) CountActives33777 = false; var SetTimeOutPeriods33777 = (Math.abs(CountSteppers33777)-1)*1000 + 990; puti(BackColors33777, ForeColors33777); var dthens33777 = new Date(TargetDates33777); var dnows33777 = new Date("04/01/2026 2:08:53 PM"); if(CountSteppers33777>0) ddiffs33777 = new Date(dnows33777-dthens33777); else ddiffs33777 = new Date(dthens33777-dnows33777); gsecss33777 = Math.floor(ddiffs33777.valueOf()/1000); CountBacks33777(gsecss33777);