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 (LeadingZeros32724 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32724(secs) { if (secs < 0) { document.getElementById("cntdwns32724").innerHTML = FinishMessages32724; return; } DisplayStrs32724 = DisplayFormats32724.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32724 = DisplayStrs32724.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32724 = DisplayStrs32724.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32724 = DisplayStrs32724.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32724").innerHTML = DisplayStrs32724; if (CountActives32724) //alert(SetTimeOutPeriods32724); setTimeout("CountBacks32724(" + (secs+CountSteppers32724) + ")", SetTimeOutPeriods32724); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32724)=="undefined") BackColors32724 = ""; if (typeof(ForeColors32724)=="undefined") ForeColors32724= "white"; if (typeof(TargetDates32724)=="undefined") TargetDates32724 = "10/11/2025 10:00:00 PM"; if (typeof(DisplayFormats32724)=="undefined") DisplayFormats32724 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32724)=="undefined") CountActives32724 = true; if (typeof(FinishMessages32724)=="undefined") FinishMessages32724 = ""; if (typeof(CountSteppers32724)!="number") CountSteppers32724 = -1; if (typeof(LeadingZeros32724)=="undefined") LeadingZeros32724 = true; CountSteppers32724 = Math.ceil(CountSteppers32724); if (CountSteppers32724 == 0) CountActives32724 = false; var SetTimeOutPeriods32724 = (Math.abs(CountSteppers32724)-1)*1000 + 990; puti(BackColors32724, ForeColors32724); var dthens32724 = new Date(TargetDates32724); var dnows32724 = new Date("10/09/2025 3:24:56 PM"); if(CountSteppers32724>0) ddiffs32724 = new Date(dnows32724-dthens32724); else ddiffs32724 = new Date(dthens32724-dnows32724); gsecss32724 = Math.floor(ddiffs32724.valueOf()/1000); CountBacks32724(gsecss32724);