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 (LeadingZeros34118 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34118(secs) { if (secs < 0) { document.getElementById("cntdwns34118").innerHTML = FinishMessages34118; return; } DisplayStrs34118 = DisplayFormats34118.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34118 = DisplayStrs34118.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34118 = DisplayStrs34118.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34118 = DisplayStrs34118.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34118").innerHTML = DisplayStrs34118; if (CountActives34118) //alert(SetTimeOutPeriods34118); setTimeout("CountBacks34118(" + (secs+CountSteppers34118) + ")", SetTimeOutPeriods34118); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34118)=="undefined") BackColors34118 = ""; if (typeof(ForeColors34118)=="undefined") ForeColors34118= "white"; if (typeof(TargetDates34118)=="undefined") TargetDates34118 = "08/24/2026 10:00:00 PM"; if (typeof(DisplayFormats34118)=="undefined") DisplayFormats34118 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34118)=="undefined") CountActives34118 = true; if (typeof(FinishMessages34118)=="undefined") FinishMessages34118 = ""; if (typeof(CountSteppers34118)!="number") CountSteppers34118 = -1; if (typeof(LeadingZeros34118)=="undefined") LeadingZeros34118 = true; CountSteppers34118 = Math.ceil(CountSteppers34118); if (CountSteppers34118 == 0) CountActives34118 = false; var SetTimeOutPeriods34118 = (Math.abs(CountSteppers34118)-1)*1000 + 990; puti(BackColors34118, ForeColors34118); var dthens34118 = new Date(TargetDates34118); var dnows34118 = new Date("08/23/2026 1:11:37 AM"); if(CountSteppers34118>0) ddiffs34118 = new Date(dnows34118-dthens34118); else ddiffs34118 = new Date(dthens34118-dnows34118); gsecss34118 = Math.floor(ddiffs34118.valueOf()/1000); CountBacks34118(gsecss34118);