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 (LeadingZeros32866 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32866(secs) { if (secs < 0) { document.getElementById("cntdwns32866").innerHTML = FinishMessages32866; return; } DisplayStrs32866 = DisplayFormats32866.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32866 = DisplayStrs32866.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32866 = DisplayStrs32866.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32866 = DisplayStrs32866.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32866").innerHTML = DisplayStrs32866; if (CountActives32866) //alert(SetTimeOutPeriods32866); setTimeout("CountBacks32866(" + (secs+CountSteppers32866) + ")", SetTimeOutPeriods32866); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32866)=="undefined") BackColors32866 = ""; if (typeof(ForeColors32866)=="undefined") ForeColors32866= "white"; if (typeof(TargetDates32866)=="undefined") TargetDates32866 = "10/24/2025 10:00:00 PM"; if (typeof(DisplayFormats32866)=="undefined") DisplayFormats32866 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32866)=="undefined") CountActives32866 = true; if (typeof(FinishMessages32866)=="undefined") FinishMessages32866 = ""; if (typeof(CountSteppers32866)!="number") CountSteppers32866 = -1; if (typeof(LeadingZeros32866)=="undefined") LeadingZeros32866 = true; CountSteppers32866 = Math.ceil(CountSteppers32866); if (CountSteppers32866 == 0) CountActives32866 = false; var SetTimeOutPeriods32866 = (Math.abs(CountSteppers32866)-1)*1000 + 990; puti(BackColors32866, ForeColors32866); var dthens32866 = new Date(TargetDates32866); var dnows32866 = new Date("10/21/2025 2:31:50 PM"); if(CountSteppers32866>0) ddiffs32866 = new Date(dnows32866-dthens32866); else ddiffs32866 = new Date(dthens32866-dnows32866); gsecss32866 = Math.floor(ddiffs32866.valueOf()/1000); CountBacks32866(gsecss32866);