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 (LeadingZeros33681 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33681(secs) { if (secs < 0) { document.getElementById("cntdwns33681").innerHTML = FinishMessages33681; return; } DisplayStrs33681 = DisplayFormats33681.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33681 = DisplayStrs33681.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33681 = DisplayStrs33681.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33681 = DisplayStrs33681.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33681").innerHTML = DisplayStrs33681; if (CountActives33681) //alert(SetTimeOutPeriods33681); setTimeout("CountBacks33681(" + (secs+CountSteppers33681) + ")", SetTimeOutPeriods33681); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33681)=="undefined") BackColors33681 = ""; if (typeof(ForeColors33681)=="undefined") ForeColors33681= "white"; if (typeof(TargetDates33681)=="undefined") TargetDates33681 = "04/16/2026 11:00:00 PM"; if (typeof(DisplayFormats33681)=="undefined") DisplayFormats33681 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33681)=="undefined") CountActives33681 = true; if (typeof(FinishMessages33681)=="undefined") FinishMessages33681 = ""; if (typeof(CountSteppers33681)!="number") CountSteppers33681 = -1; if (typeof(LeadingZeros33681)=="undefined") LeadingZeros33681 = true; CountSteppers33681 = Math.ceil(CountSteppers33681); if (CountSteppers33681 == 0) CountActives33681 = false; var SetTimeOutPeriods33681 = (Math.abs(CountSteppers33681)-1)*1000 + 990; puti(BackColors33681, ForeColors33681); var dthens33681 = new Date(TargetDates33681); var dnows33681 = new Date("05/01/2026 10:40:59 PM"); if(CountSteppers33681>0) ddiffs33681 = new Date(dnows33681-dthens33681); else ddiffs33681 = new Date(dthens33681-dnows33681); gsecss33681 = Math.floor(ddiffs33681.valueOf()/1000); CountBacks33681(gsecss33681);