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 (LeadingZeros34249 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34249(secs) { if (secs < 0) { document.getElementById("cntdwns34249").innerHTML = FinishMessages34249; return; } DisplayStrs34249 = DisplayFormats34249.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34249 = DisplayStrs34249.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34249 = DisplayStrs34249.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34249 = DisplayStrs34249.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34249").innerHTML = DisplayStrs34249; if (CountActives34249) //alert(SetTimeOutPeriods34249); setTimeout("CountBacks34249(" + (secs+CountSteppers34249) + ")", SetTimeOutPeriods34249); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34249)=="undefined") BackColors34249 = ""; if (typeof(ForeColors34249)=="undefined") ForeColors34249= "white"; if (typeof(TargetDates34249)=="undefined") TargetDates34249 = "09/22/2026 10:00:00 PM"; if (typeof(DisplayFormats34249)=="undefined") DisplayFormats34249 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34249)=="undefined") CountActives34249 = true; if (typeof(FinishMessages34249)=="undefined") FinishMessages34249 = ""; if (typeof(CountSteppers34249)!="number") CountSteppers34249 = -1; if (typeof(LeadingZeros34249)=="undefined") LeadingZeros34249 = true; CountSteppers34249 = Math.ceil(CountSteppers34249); if (CountSteppers34249 == 0) CountActives34249 = false; var SetTimeOutPeriods34249 = (Math.abs(CountSteppers34249)-1)*1000 + 990; puti(BackColors34249, ForeColors34249); var dthens34249 = new Date(TargetDates34249); var dnows34249 = new Date("09/20/2026 10:19:45 AM"); if(CountSteppers34249>0) ddiffs34249 = new Date(dnows34249-dthens34249); else ddiffs34249 = new Date(dthens34249-dnows34249); gsecss34249 = Math.floor(ddiffs34249.valueOf()/1000); CountBacks34249(gsecss34249);