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 (LeadingZeros34247 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34247(secs) { if (secs < 0) { document.getElementById("cntdwns34247").innerHTML = FinishMessages34247; return; } DisplayStrs34247 = DisplayFormats34247.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34247 = DisplayStrs34247.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34247 = DisplayStrs34247.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34247 = DisplayStrs34247.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34247").innerHTML = DisplayStrs34247; if (CountActives34247) //alert(SetTimeOutPeriods34247); setTimeout("CountBacks34247(" + (secs+CountSteppers34247) + ")", SetTimeOutPeriods34247); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34247)=="undefined") BackColors34247 = ""; if (typeof(ForeColors34247)=="undefined") ForeColors34247= "white"; if (typeof(TargetDates34247)=="undefined") TargetDates34247 = "10/04/2026 8:00:00 AM"; if (typeof(DisplayFormats34247)=="undefined") DisplayFormats34247 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34247)=="undefined") CountActives34247 = true; if (typeof(FinishMessages34247)=="undefined") FinishMessages34247 = ""; if (typeof(CountSteppers34247)!="number") CountSteppers34247 = -1; if (typeof(LeadingZeros34247)=="undefined") LeadingZeros34247 = true; CountSteppers34247 = Math.ceil(CountSteppers34247); if (CountSteppers34247 == 0) CountActives34247 = false; var SetTimeOutPeriods34247 = (Math.abs(CountSteppers34247)-1)*1000 + 990; puti(BackColors34247, ForeColors34247); var dthens34247 = new Date(TargetDates34247); var dnows34247 = new Date("10/02/2026 2:44:51 PM"); if(CountSteppers34247>0) ddiffs34247 = new Date(dnows34247-dthens34247); else ddiffs34247 = new Date(dthens34247-dnows34247); gsecss34247 = Math.floor(ddiffs34247.valueOf()/1000); CountBacks34247(gsecss34247);