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 (LeadingZeros34209 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34209(secs) { if (secs < 0) { document.getElementById("cntdwns34209").innerHTML = FinishMessages34209; return; } DisplayStrs34209 = DisplayFormats34209.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34209 = DisplayStrs34209.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34209 = DisplayStrs34209.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34209 = DisplayStrs34209.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34209").innerHTML = DisplayStrs34209; if (CountActives34209) //alert(SetTimeOutPeriods34209); setTimeout("CountBacks34209(" + (secs+CountSteppers34209) + ")", SetTimeOutPeriods34209); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34209)=="undefined") BackColors34209 = ""; if (typeof(ForeColors34209)=="undefined") ForeColors34209= "white"; if (typeof(TargetDates34209)=="undefined") TargetDates34209 = "09/26/2026 10:00:00 PM"; if (typeof(DisplayFormats34209)=="undefined") DisplayFormats34209 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34209)=="undefined") CountActives34209 = true; if (typeof(FinishMessages34209)=="undefined") FinishMessages34209 = ""; if (typeof(CountSteppers34209)!="number") CountSteppers34209 = -1; if (typeof(LeadingZeros34209)=="undefined") LeadingZeros34209 = true; CountSteppers34209 = Math.ceil(CountSteppers34209); if (CountSteppers34209 == 0) CountActives34209 = false; var SetTimeOutPeriods34209 = (Math.abs(CountSteppers34209)-1)*1000 + 990; puti(BackColors34209, ForeColors34209); var dthens34209 = new Date(TargetDates34209); var dnows34209 = new Date("09/23/2026 10:56:24 PM"); if(CountSteppers34209>0) ddiffs34209 = new Date(dnows34209-dthens34209); else ddiffs34209 = new Date(dthens34209-dnows34209); gsecss34209 = Math.floor(ddiffs34209.valueOf()/1000); CountBacks34209(gsecss34209);