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 (LeadingZeros34224 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34224(secs) { if (secs < 0) { document.getElementById("cntdwns34224").innerHTML = FinishMessages34224; return; } DisplayStrs34224 = DisplayFormats34224.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34224 = DisplayStrs34224.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34224 = DisplayStrs34224.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34224 = DisplayStrs34224.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34224").innerHTML = DisplayStrs34224; if (CountActives34224) //alert(SetTimeOutPeriods34224); setTimeout("CountBacks34224(" + (secs+CountSteppers34224) + ")", SetTimeOutPeriods34224); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34224)=="undefined") BackColors34224 = ""; if (typeof(ForeColors34224)=="undefined") ForeColors34224= "white"; if (typeof(TargetDates34224)=="undefined") TargetDates34224 = "11/21/2026 4:00:00 PM"; if (typeof(DisplayFormats34224)=="undefined") DisplayFormats34224 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34224)=="undefined") CountActives34224 = true; if (typeof(FinishMessages34224)=="undefined") FinishMessages34224 = ""; if (typeof(CountSteppers34224)!="number") CountSteppers34224 = -1; if (typeof(LeadingZeros34224)=="undefined") LeadingZeros34224 = true; CountSteppers34224 = Math.ceil(CountSteppers34224); if (CountSteppers34224 == 0) CountActives34224 = false; var SetTimeOutPeriods34224 = (Math.abs(CountSteppers34224)-1)*1000 + 990; puti(BackColors34224, ForeColors34224); var dthens34224 = new Date(TargetDates34224); var dnows34224 = new Date("10/04/2026 6:25:27 PM"); if(CountSteppers34224>0) ddiffs34224 = new Date(dnows34224-dthens34224); else ddiffs34224 = new Date(dthens34224-dnows34224); gsecss34224 = Math.floor(ddiffs34224.valueOf()/1000); CountBacks34224(gsecss34224);