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 (LeadingZeros34116 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34116(secs) { if (secs < 0) { document.getElementById("cntdwns34116").innerHTML = FinishMessages34116; return; } DisplayStrs34116 = DisplayFormats34116.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34116 = DisplayStrs34116.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34116 = DisplayStrs34116.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34116 = DisplayStrs34116.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34116").innerHTML = DisplayStrs34116; if (CountActives34116) //alert(SetTimeOutPeriods34116); setTimeout("CountBacks34116(" + (secs+CountSteppers34116) + ")", SetTimeOutPeriods34116); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34116)=="undefined") BackColors34116 = ""; if (typeof(ForeColors34116)=="undefined") ForeColors34116= "white"; if (typeof(TargetDates34116)=="undefined") TargetDates34116 = "08/24/2026 10:00:00 PM"; if (typeof(DisplayFormats34116)=="undefined") DisplayFormats34116 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34116)=="undefined") CountActives34116 = true; if (typeof(FinishMessages34116)=="undefined") FinishMessages34116 = ""; if (typeof(CountSteppers34116)!="number") CountSteppers34116 = -1; if (typeof(LeadingZeros34116)=="undefined") LeadingZeros34116 = true; CountSteppers34116 = Math.ceil(CountSteppers34116); if (CountSteppers34116 == 0) CountActives34116 = false; var SetTimeOutPeriods34116 = (Math.abs(CountSteppers34116)-1)*1000 + 990; puti(BackColors34116, ForeColors34116); var dthens34116 = new Date(TargetDates34116); var dnows34116 = new Date("08/22/2026 8:24:35 AM"); if(CountSteppers34116>0) ddiffs34116 = new Date(dnows34116-dthens34116); else ddiffs34116 = new Date(dthens34116-dnows34116); gsecss34116 = Math.floor(ddiffs34116.valueOf()/1000); CountBacks34116(gsecss34116);