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 (LeadingZeros32997 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32997(secs) { if (secs < 0) { document.getElementById("cntdwns32997").innerHTML = FinishMessages32997; return; } DisplayStrs32997 = DisplayFormats32997.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32997 = DisplayStrs32997.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32997 = DisplayStrs32997.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32997 = DisplayStrs32997.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32997").innerHTML = DisplayStrs32997; if (CountActives32997) //alert(SetTimeOutPeriods32997); setTimeout("CountBacks32997(" + (secs+CountSteppers32997) + ")", SetTimeOutPeriods32997); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32997)=="undefined") BackColors32997 = ""; if (typeof(ForeColors32997)=="undefined") ForeColors32997= "white"; if (typeof(TargetDates32997)=="undefined") TargetDates32997 = "10/18/2025 10:00:00 PM"; if (typeof(DisplayFormats32997)=="undefined") DisplayFormats32997 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32997)=="undefined") CountActives32997 = true; if (typeof(FinishMessages32997)=="undefined") FinishMessages32997 = ""; if (typeof(CountSteppers32997)!="number") CountSteppers32997 = -1; if (typeof(LeadingZeros32997)=="undefined") LeadingZeros32997 = true; CountSteppers32997 = Math.ceil(CountSteppers32997); if (CountSteppers32997 == 0) CountActives32997 = false; var SetTimeOutPeriods32997 = (Math.abs(CountSteppers32997)-1)*1000 + 990; puti(BackColors32997, ForeColors32997); var dthens32997 = new Date(TargetDates32997); var dnows32997 = new Date("10/16/2025 7:23:20 PM"); if(CountSteppers32997>0) ddiffs32997 = new Date(dnows32997-dthens32997); else ddiffs32997 = new Date(dthens32997-dnows32997); gsecss32997 = Math.floor(ddiffs32997.valueOf()/1000); CountBacks32997(gsecss32997);