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 (LeadingZeros31907 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31907(secs) { if (secs < 0) { document.getElementById("cntdwns31907").innerHTML = FinishMessages31907; return; } DisplayStrs31907 = DisplayFormats31907.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31907 = DisplayStrs31907.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31907 = DisplayStrs31907.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31907 = DisplayStrs31907.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31907").innerHTML = DisplayStrs31907; if (CountActives31907) //alert(SetTimeOutPeriods31907); setTimeout("CountBacks31907(" + (secs+CountSteppers31907) + ")", SetTimeOutPeriods31907); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31907)=="undefined") BackColors31907 = ""; if (typeof(ForeColors31907)=="undefined") ForeColors31907= "white"; if (typeof(TargetDates31907)=="undefined") TargetDates31907 = "09/20/2025 11:00:00 PM"; if (typeof(DisplayFormats31907)=="undefined") DisplayFormats31907 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31907)=="undefined") CountActives31907 = true; if (typeof(FinishMessages31907)=="undefined") FinishMessages31907 = ""; if (typeof(CountSteppers31907)!="number") CountSteppers31907 = -1; if (typeof(LeadingZeros31907)=="undefined") LeadingZeros31907 = true; CountSteppers31907 = Math.ceil(CountSteppers31907); if (CountSteppers31907 == 0) CountActives31907 = false; var SetTimeOutPeriods31907 = (Math.abs(CountSteppers31907)-1)*1000 + 990; puti(BackColors31907, ForeColors31907); var dthens31907 = new Date(TargetDates31907); var dnows31907 = new Date("09/18/2025 9:32:27 AM"); if(CountSteppers31907>0) ddiffs31907 = new Date(dnows31907-dthens31907); else ddiffs31907 = new Date(dthens31907-dnows31907); gsecss31907 = Math.floor(ddiffs31907.valueOf()/1000); CountBacks31907(gsecss31907);