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 (LeadingZeros32689 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32689(secs) { if (secs < 0) { document.getElementById("cntdwns32689").innerHTML = FinishMessages32689; return; } DisplayStrs32689 = DisplayFormats32689.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32689 = DisplayStrs32689.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32689 = DisplayStrs32689.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32689 = DisplayStrs32689.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32689").innerHTML = DisplayStrs32689; if (CountActives32689) //alert(SetTimeOutPeriods32689); setTimeout("CountBacks32689(" + (secs+CountSteppers32689) + ")", SetTimeOutPeriods32689); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32689)=="undefined") BackColors32689 = ""; if (typeof(ForeColors32689)=="undefined") ForeColors32689= "white"; if (typeof(TargetDates32689)=="undefined") TargetDates32689 = "08/24/2025 10:00:00 PM"; if (typeof(DisplayFormats32689)=="undefined") DisplayFormats32689 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32689)=="undefined") CountActives32689 = true; if (typeof(FinishMessages32689)=="undefined") FinishMessages32689 = ""; if (typeof(CountSteppers32689)!="number") CountSteppers32689 = -1; if (typeof(LeadingZeros32689)=="undefined") LeadingZeros32689 = true; CountSteppers32689 = Math.ceil(CountSteppers32689); if (CountSteppers32689 == 0) CountActives32689 = false; var SetTimeOutPeriods32689 = (Math.abs(CountSteppers32689)-1)*1000 + 990; puti(BackColors32689, ForeColors32689); var dthens32689 = new Date(TargetDates32689); var dnows32689 = new Date("08/21/2025 8:14:03 AM"); if(CountSteppers32689>0) ddiffs32689 = new Date(dnows32689-dthens32689); else ddiffs32689 = new Date(dthens32689-dnows32689); gsecss32689 = Math.floor(ddiffs32689.valueOf()/1000); CountBacks32689(gsecss32689);