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 (LeadingZeros32877 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32877(secs) { if (secs < 0) { document.getElementById("cntdwns32877").innerHTML = FinishMessages32877; return; } DisplayStrs32877 = DisplayFormats32877.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32877 = DisplayStrs32877.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32877 = DisplayStrs32877.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32877 = DisplayStrs32877.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32877").innerHTML = DisplayStrs32877; if (CountActives32877) //alert(SetTimeOutPeriods32877); setTimeout("CountBacks32877(" + (secs+CountSteppers32877) + ")", SetTimeOutPeriods32877); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32877)=="undefined") BackColors32877 = ""; if (typeof(ForeColors32877)=="undefined") ForeColors32877= "white"; if (typeof(TargetDates32877)=="undefined") TargetDates32877 = "10/17/2025 10:00:00 PM"; if (typeof(DisplayFormats32877)=="undefined") DisplayFormats32877 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32877)=="undefined") CountActives32877 = true; if (typeof(FinishMessages32877)=="undefined") FinishMessages32877 = ""; if (typeof(CountSteppers32877)!="number") CountSteppers32877 = -1; if (typeof(LeadingZeros32877)=="undefined") LeadingZeros32877 = true; CountSteppers32877 = Math.ceil(CountSteppers32877); if (CountSteppers32877 == 0) CountActives32877 = false; var SetTimeOutPeriods32877 = (Math.abs(CountSteppers32877)-1)*1000 + 990; puti(BackColors32877, ForeColors32877); var dthens32877 = new Date(TargetDates32877); var dnows32877 = new Date("10/16/2025 5:37:26 PM"); if(CountSteppers32877>0) ddiffs32877 = new Date(dnows32877-dthens32877); else ddiffs32877 = new Date(dthens32877-dnows32877); gsecss32877 = Math.floor(ddiffs32877.valueOf()/1000); CountBacks32877(gsecss32877);