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 (LeadingZeros34545 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34545(secs) { if (secs < 0) { document.getElementById("cntdwns34545").innerHTML = FinishMessages34545; return; } DisplayStrs34545 = DisplayFormats34545.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34545 = DisplayStrs34545.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34545 = DisplayStrs34545.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34545 = DisplayStrs34545.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34545").innerHTML = DisplayStrs34545; if (CountActives34545) //alert(SetTimeOutPeriods34545); setTimeout("CountBacks34545(" + (secs+CountSteppers34545) + ")", SetTimeOutPeriods34545); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34545)=="undefined") BackColors34545 = ""; if (typeof(ForeColors34545)=="undefined") ForeColors34545= "white"; if (typeof(TargetDates34545)=="undefined") TargetDates34545 = "11/24/2026 12:00:00 PM"; if (typeof(DisplayFormats34545)=="undefined") DisplayFormats34545 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34545)=="undefined") CountActives34545 = true; if (typeof(FinishMessages34545)=="undefined") FinishMessages34545 = ""; if (typeof(CountSteppers34545)!="number") CountSteppers34545 = -1; if (typeof(LeadingZeros34545)=="undefined") LeadingZeros34545 = true; CountSteppers34545 = Math.ceil(CountSteppers34545); if (CountSteppers34545 == 0) CountActives34545 = false; var SetTimeOutPeriods34545 = (Math.abs(CountSteppers34545)-1)*1000 + 990; puti(BackColors34545, ForeColors34545); var dthens34545 = new Date(TargetDates34545); var dnows34545 = new Date("11/23/2026 2:04:21 PM"); if(CountSteppers34545>0) ddiffs34545 = new Date(dnows34545-dthens34545); else ddiffs34545 = new Date(dthens34545-dnows34545); gsecss34545 = Math.floor(ddiffs34545.valueOf()/1000); CountBacks34545(gsecss34545);