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 (LeadingZeros34207 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34207(secs) { if (secs < 0) { document.getElementById("cntdwns34207").innerHTML = FinishMessages34207; return; } DisplayStrs34207 = DisplayFormats34207.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34207 = DisplayStrs34207.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34207 = DisplayStrs34207.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34207 = DisplayStrs34207.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34207").innerHTML = DisplayStrs34207; if (CountActives34207) //alert(SetTimeOutPeriods34207); setTimeout("CountBacks34207(" + (secs+CountSteppers34207) + ")", SetTimeOutPeriods34207); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34207)=="undefined") BackColors34207 = ""; if (typeof(ForeColors34207)=="undefined") ForeColors34207= "white"; if (typeof(TargetDates34207)=="undefined") TargetDates34207 = "09/29/2026 2:00:00 PM"; if (typeof(DisplayFormats34207)=="undefined") DisplayFormats34207 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34207)=="undefined") CountActives34207 = true; if (typeof(FinishMessages34207)=="undefined") FinishMessages34207 = ""; if (typeof(CountSteppers34207)!="number") CountSteppers34207 = -1; if (typeof(LeadingZeros34207)=="undefined") LeadingZeros34207 = true; CountSteppers34207 = Math.ceil(CountSteppers34207); if (CountSteppers34207 == 0) CountActives34207 = false; var SetTimeOutPeriods34207 = (Math.abs(CountSteppers34207)-1)*1000 + 990; puti(BackColors34207, ForeColors34207); var dthens34207 = new Date(TargetDates34207); var dnows34207 = new Date("09/26/2026 3:37:31 AM"); if(CountSteppers34207>0) ddiffs34207 = new Date(dnows34207-dthens34207); else ddiffs34207 = new Date(dthens34207-dnows34207); gsecss34207 = Math.floor(ddiffs34207.valueOf()/1000); CountBacks34207(gsecss34207);