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 (LeadingZeros34278 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34278(secs) { if (secs < 0) { document.getElementById("cntdwns34278").innerHTML = FinishMessages34278; return; } DisplayStrs34278 = DisplayFormats34278.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34278 = DisplayStrs34278.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34278 = DisplayStrs34278.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34278 = DisplayStrs34278.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34278").innerHTML = DisplayStrs34278; if (CountActives34278) //alert(SetTimeOutPeriods34278); setTimeout("CountBacks34278(" + (secs+CountSteppers34278) + ")", SetTimeOutPeriods34278); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34278)=="undefined") BackColors34278 = ""; if (typeof(ForeColors34278)=="undefined") ForeColors34278= "white"; if (typeof(TargetDates34278)=="undefined") TargetDates34278 = "10/21/2026 10:00:00 PM"; if (typeof(DisplayFormats34278)=="undefined") DisplayFormats34278 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34278)=="undefined") CountActives34278 = true; if (typeof(FinishMessages34278)=="undefined") FinishMessages34278 = ""; if (typeof(CountSteppers34278)!="number") CountSteppers34278 = -1; if (typeof(LeadingZeros34278)=="undefined") LeadingZeros34278 = true; CountSteppers34278 = Math.ceil(CountSteppers34278); if (CountSteppers34278 == 0) CountActives34278 = false; var SetTimeOutPeriods34278 = (Math.abs(CountSteppers34278)-1)*1000 + 990; puti(BackColors34278, ForeColors34278); var dthens34278 = new Date(TargetDates34278); var dnows34278 = new Date("10/19/2026 8:02:54 AM"); if(CountSteppers34278>0) ddiffs34278 = new Date(dnows34278-dthens34278); else ddiffs34278 = new Date(dthens34278-dnows34278); gsecss34278 = Math.floor(ddiffs34278.valueOf()/1000); CountBacks34278(gsecss34278);