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 (LeadingZeros32816 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32816(secs) { if (secs < 0) { document.getElementById("cntdwns32816").innerHTML = FinishMessages32816; return; } DisplayStrs32816 = DisplayFormats32816.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32816 = DisplayStrs32816.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32816 = DisplayStrs32816.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32816 = DisplayStrs32816.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32816").innerHTML = DisplayStrs32816; if (CountActives32816) //alert(SetTimeOutPeriods32816); setTimeout("CountBacks32816(" + (secs+CountSteppers32816) + ")", SetTimeOutPeriods32816); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32816)=="undefined") BackColors32816 = ""; if (typeof(ForeColors32816)=="undefined") ForeColors32816= "white"; if (typeof(TargetDates32816)=="undefined") TargetDates32816 = "09/20/2025 10:00:00 PM"; if (typeof(DisplayFormats32816)=="undefined") DisplayFormats32816 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32816)=="undefined") CountActives32816 = true; if (typeof(FinishMessages32816)=="undefined") FinishMessages32816 = ""; if (typeof(CountSteppers32816)!="number") CountSteppers32816 = -1; if (typeof(LeadingZeros32816)=="undefined") LeadingZeros32816 = true; CountSteppers32816 = Math.ceil(CountSteppers32816); if (CountSteppers32816 == 0) CountActives32816 = false; var SetTimeOutPeriods32816 = (Math.abs(CountSteppers32816)-1)*1000 + 990; puti(BackColors32816, ForeColors32816); var dthens32816 = new Date(TargetDates32816); var dnows32816 = new Date("09/18/2025 7:53:57 AM"); if(CountSteppers32816>0) ddiffs32816 = new Date(dnows32816-dthens32816); else ddiffs32816 = new Date(dthens32816-dnows32816); gsecss32816 = Math.floor(ddiffs32816.valueOf()/1000); CountBacks32816(gsecss32816);