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 (LeadingZeros34053 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34053(secs) { if (secs < 0) { document.getElementById("cntdwns34053").innerHTML = FinishMessages34053; return; } DisplayStrs34053 = DisplayFormats34053.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34053 = DisplayStrs34053.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34053 = DisplayStrs34053.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34053 = DisplayStrs34053.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34053").innerHTML = DisplayStrs34053; if (CountActives34053) //alert(SetTimeOutPeriods34053); setTimeout("CountBacks34053(" + (secs+CountSteppers34053) + ")", SetTimeOutPeriods34053); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34053)=="undefined") BackColors34053 = ""; if (typeof(ForeColors34053)=="undefined") ForeColors34053= "white"; if (typeof(TargetDates34053)=="undefined") TargetDates34053 = "09/19/2026 10:00:00 PM"; if (typeof(DisplayFormats34053)=="undefined") DisplayFormats34053 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34053)=="undefined") CountActives34053 = true; if (typeof(FinishMessages34053)=="undefined") FinishMessages34053 = ""; if (typeof(CountSteppers34053)!="number") CountSteppers34053 = -1; if (typeof(LeadingZeros34053)=="undefined") LeadingZeros34053 = true; CountSteppers34053 = Math.ceil(CountSteppers34053); if (CountSteppers34053 == 0) CountActives34053 = false; var SetTimeOutPeriods34053 = (Math.abs(CountSteppers34053)-1)*1000 + 990; puti(BackColors34053, ForeColors34053); var dthens34053 = new Date(TargetDates34053); var dnows34053 = new Date("09/17/2026 1:32:58 PM"); if(CountSteppers34053>0) ddiffs34053 = new Date(dnows34053-dthens34053); else ddiffs34053 = new Date(dthens34053-dnows34053); gsecss34053 = Math.floor(ddiffs34053.valueOf()/1000); CountBacks34053(gsecss34053);