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 (LeadingZeros32712 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32712(secs) { if (secs < 0) { document.getElementById("cntdwns32712").innerHTML = FinishMessages32712; return; } DisplayStrs32712 = DisplayFormats32712.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32712 = DisplayStrs32712.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32712 = DisplayStrs32712.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32712 = DisplayStrs32712.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32712").innerHTML = DisplayStrs32712; if (CountActives32712) //alert(SetTimeOutPeriods32712); setTimeout("CountBacks32712(" + (secs+CountSteppers32712) + ")", SetTimeOutPeriods32712); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32712)=="undefined") BackColors32712 = ""; if (typeof(ForeColors32712)=="undefined") ForeColors32712= "white"; if (typeof(TargetDates32712)=="undefined") TargetDates32712 = "08/22/2025 10:00:00 PM"; if (typeof(DisplayFormats32712)=="undefined") DisplayFormats32712 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32712)=="undefined") CountActives32712 = true; if (typeof(FinishMessages32712)=="undefined") FinishMessages32712 = ""; if (typeof(CountSteppers32712)!="number") CountSteppers32712 = -1; if (typeof(LeadingZeros32712)=="undefined") LeadingZeros32712 = true; CountSteppers32712 = Math.ceil(CountSteppers32712); if (CountSteppers32712 == 0) CountActives32712 = false; var SetTimeOutPeriods32712 = (Math.abs(CountSteppers32712)-1)*1000 + 990; puti(BackColors32712, ForeColors32712); var dthens32712 = new Date(TargetDates32712); var dnows32712 = new Date("08/20/2025 8:45:11 AM"); if(CountSteppers32712>0) ddiffs32712 = new Date(dnows32712-dthens32712); else ddiffs32712 = new Date(dthens32712-dnows32712); gsecss32712 = Math.floor(ddiffs32712.valueOf()/1000); CountBacks32712(gsecss32712);