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 (LeadingZeros34206 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34206(secs) { if (secs < 0) { document.getElementById("cntdwns34206").innerHTML = FinishMessages34206; return; } DisplayStrs34206 = DisplayFormats34206.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34206 = DisplayStrs34206.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34206 = DisplayStrs34206.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34206 = DisplayStrs34206.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34206").innerHTML = DisplayStrs34206; if (CountActives34206) //alert(SetTimeOutPeriods34206); setTimeout("CountBacks34206(" + (secs+CountSteppers34206) + ")", SetTimeOutPeriods34206); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34206)=="undefined") BackColors34206 = ""; if (typeof(ForeColors34206)=="undefined") ForeColors34206= "white"; if (typeof(TargetDates34206)=="undefined") TargetDates34206 = "09/13/2026 10:00:00 AM"; if (typeof(DisplayFormats34206)=="undefined") DisplayFormats34206 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34206)=="undefined") CountActives34206 = true; if (typeof(FinishMessages34206)=="undefined") FinishMessages34206 = ""; if (typeof(CountSteppers34206)!="number") CountSteppers34206 = -1; if (typeof(LeadingZeros34206)=="undefined") LeadingZeros34206 = true; CountSteppers34206 = Math.ceil(CountSteppers34206); if (CountSteppers34206 == 0) CountActives34206 = false; var SetTimeOutPeriods34206 = (Math.abs(CountSteppers34206)-1)*1000 + 990; puti(BackColors34206, ForeColors34206); var dthens34206 = new Date(TargetDates34206); var dnows34206 = new Date("09/11/2026 6:01:24 PM"); if(CountSteppers34206>0) ddiffs34206 = new Date(dnows34206-dthens34206); else ddiffs34206 = new Date(dthens34206-dnows34206); gsecss34206 = Math.floor(ddiffs34206.valueOf()/1000); CountBacks34206(gsecss34206);