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 (LeadingZeros32797 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32797(secs) { if (secs < 0) { document.getElementById("cntdwns32797").innerHTML = FinishMessages32797; return; } DisplayStrs32797 = DisplayFormats32797.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32797 = DisplayStrs32797.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32797 = DisplayStrs32797.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32797 = DisplayStrs32797.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32797").innerHTML = DisplayStrs32797; if (CountActives32797) //alert(SetTimeOutPeriods32797); setTimeout("CountBacks32797(" + (secs+CountSteppers32797) + ")", SetTimeOutPeriods32797); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32797)=="undefined") BackColors32797 = ""; if (typeof(ForeColors32797)=="undefined") ForeColors32797= "white"; if (typeof(TargetDates32797)=="undefined") TargetDates32797 = "09/20/2025 10:00:00 PM"; if (typeof(DisplayFormats32797)=="undefined") DisplayFormats32797 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32797)=="undefined") CountActives32797 = true; if (typeof(FinishMessages32797)=="undefined") FinishMessages32797 = ""; if (typeof(CountSteppers32797)!="number") CountSteppers32797 = -1; if (typeof(LeadingZeros32797)=="undefined") LeadingZeros32797 = true; CountSteppers32797 = Math.ceil(CountSteppers32797); if (CountSteppers32797 == 0) CountActives32797 = false; var SetTimeOutPeriods32797 = (Math.abs(CountSteppers32797)-1)*1000 + 990; puti(BackColors32797, ForeColors32797); var dthens32797 = new Date(TargetDates32797); var dnows32797 = new Date("09/18/2025 5:25:26 PM"); if(CountSteppers32797>0) ddiffs32797 = new Date(dnows32797-dthens32797); else ddiffs32797 = new Date(dthens32797-dnows32797); gsecss32797 = Math.floor(ddiffs32797.valueOf()/1000); CountBacks32797(gsecss32797);