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 (LeadingZeros32687 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32687(secs) { if (secs < 0) { document.getElementById("cntdwns32687").innerHTML = FinishMessages32687; return; } DisplayStrs32687 = DisplayFormats32687.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32687 = DisplayStrs32687.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32687 = DisplayStrs32687.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32687 = DisplayStrs32687.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32687").innerHTML = DisplayStrs32687; if (CountActives32687) //alert(SetTimeOutPeriods32687); setTimeout("CountBacks32687(" + (secs+CountSteppers32687) + ")", SetTimeOutPeriods32687); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32687)=="undefined") BackColors32687 = ""; if (typeof(ForeColors32687)=="undefined") ForeColors32687= "white"; if (typeof(TargetDates32687)=="undefined") TargetDates32687 = "08/24/2025 10:00:00 PM"; if (typeof(DisplayFormats32687)=="undefined") DisplayFormats32687 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32687)=="undefined") CountActives32687 = true; if (typeof(FinishMessages32687)=="undefined") FinishMessages32687 = ""; if (typeof(CountSteppers32687)!="number") CountSteppers32687 = -1; if (typeof(LeadingZeros32687)=="undefined") LeadingZeros32687 = true; CountSteppers32687 = Math.ceil(CountSteppers32687); if (CountSteppers32687 == 0) CountActives32687 = false; var SetTimeOutPeriods32687 = (Math.abs(CountSteppers32687)-1)*1000 + 990; puti(BackColors32687, ForeColors32687); var dthens32687 = new Date(TargetDates32687); var dnows32687 = new Date("08/21/2025 11:25:20 AM"); if(CountSteppers32687>0) ddiffs32687 = new Date(dnows32687-dthens32687); else ddiffs32687 = new Date(dthens32687-dnows32687); gsecss32687 = Math.floor(ddiffs32687.valueOf()/1000); CountBacks32687(gsecss32687);