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 (LeadingZeros34109 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34109(secs) { if (secs < 0) { document.getElementById("cntdwns34109").innerHTML = FinishMessages34109; return; } DisplayStrs34109 = DisplayFormats34109.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34109 = DisplayStrs34109.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34109 = DisplayStrs34109.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34109 = DisplayStrs34109.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34109").innerHTML = DisplayStrs34109; if (CountActives34109) //alert(SetTimeOutPeriods34109); setTimeout("CountBacks34109(" + (secs+CountSteppers34109) + ")", SetTimeOutPeriods34109); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34109)=="undefined") BackColors34109 = ""; if (typeof(ForeColors34109)=="undefined") ForeColors34109= "white"; if (typeof(TargetDates34109)=="undefined") TargetDates34109 = "08/16/2026 10:00:00 PM"; if (typeof(DisplayFormats34109)=="undefined") DisplayFormats34109 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34109)=="undefined") CountActives34109 = true; if (typeof(FinishMessages34109)=="undefined") FinishMessages34109 = ""; if (typeof(CountSteppers34109)!="number") CountSteppers34109 = -1; if (typeof(LeadingZeros34109)=="undefined") LeadingZeros34109 = true; CountSteppers34109 = Math.ceil(CountSteppers34109); if (CountSteppers34109 == 0) CountActives34109 = false; var SetTimeOutPeriods34109 = (Math.abs(CountSteppers34109)-1)*1000 + 990; puti(BackColors34109, ForeColors34109); var dthens34109 = new Date(TargetDates34109); var dnows34109 = new Date("08/24/2026 12:12:36 PM"); if(CountSteppers34109>0) ddiffs34109 = new Date(dnows34109-dthens34109); else ddiffs34109 = new Date(dthens34109-dnows34109); gsecss34109 = Math.floor(ddiffs34109.valueOf()/1000); CountBacks34109(gsecss34109);