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 (LeadingZeros34117 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34117(secs) { if (secs < 0) { document.getElementById("cntdwns34117").innerHTML = FinishMessages34117; return; } DisplayStrs34117 = DisplayFormats34117.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34117 = DisplayStrs34117.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34117 = DisplayStrs34117.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34117 = DisplayStrs34117.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34117").innerHTML = DisplayStrs34117; if (CountActives34117) //alert(SetTimeOutPeriods34117); setTimeout("CountBacks34117(" + (secs+CountSteppers34117) + ")", SetTimeOutPeriods34117); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34117)=="undefined") BackColors34117 = ""; if (typeof(ForeColors34117)=="undefined") ForeColors34117= "white"; if (typeof(TargetDates34117)=="undefined") TargetDates34117 = "08/24/2026 10:00:00 PM"; if (typeof(DisplayFormats34117)=="undefined") DisplayFormats34117 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34117)=="undefined") CountActives34117 = true; if (typeof(FinishMessages34117)=="undefined") FinishMessages34117 = ""; if (typeof(CountSteppers34117)!="number") CountSteppers34117 = -1; if (typeof(LeadingZeros34117)=="undefined") LeadingZeros34117 = true; CountSteppers34117 = Math.ceil(CountSteppers34117); if (CountSteppers34117 == 0) CountActives34117 = false; var SetTimeOutPeriods34117 = (Math.abs(CountSteppers34117)-1)*1000 + 990; puti(BackColors34117, ForeColors34117); var dthens34117 = new Date(TargetDates34117); var dnows34117 = new Date("08/22/2026 8:24:35 AM"); if(CountSteppers34117>0) ddiffs34117 = new Date(dnows34117-dthens34117); else ddiffs34117 = new Date(dthens34117-dnows34117); gsecss34117 = Math.floor(ddiffs34117.valueOf()/1000); CountBacks34117(gsecss34117);