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 (LeadingZeros34166 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34166(secs) { if (secs < 0) { document.getElementById("cntdwns34166").innerHTML = FinishMessages34166; return; } DisplayStrs34166 = DisplayFormats34166.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34166 = DisplayStrs34166.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34166 = DisplayStrs34166.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34166 = DisplayStrs34166.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34166").innerHTML = DisplayStrs34166; if (CountActives34166) //alert(SetTimeOutPeriods34166); setTimeout("CountBacks34166(" + (secs+CountSteppers34166) + ")", SetTimeOutPeriods34166); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34166)=="undefined") BackColors34166 = ""; if (typeof(ForeColors34166)=="undefined") ForeColors34166= "white"; if (typeof(TargetDates34166)=="undefined") TargetDates34166 = "08/31/2026 10:00:00 PM"; if (typeof(DisplayFormats34166)=="undefined") DisplayFormats34166 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34166)=="undefined") CountActives34166 = true; if (typeof(FinishMessages34166)=="undefined") FinishMessages34166 = ""; if (typeof(CountSteppers34166)!="number") CountSteppers34166 = -1; if (typeof(LeadingZeros34166)=="undefined") LeadingZeros34166 = true; CountSteppers34166 = Math.ceil(CountSteppers34166); if (CountSteppers34166 == 0) CountActives34166 = false; var SetTimeOutPeriods34166 = (Math.abs(CountSteppers34166)-1)*1000 + 990; puti(BackColors34166, ForeColors34166); var dthens34166 = new Date(TargetDates34166); var dnows34166 = new Date("08/28/2026 11:43:27 PM"); if(CountSteppers34166>0) ddiffs34166 = new Date(dnows34166-dthens34166); else ddiffs34166 = new Date(dthens34166-dnows34166); gsecss34166 = Math.floor(ddiffs34166.valueOf()/1000); CountBacks34166(gsecss34166);