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 (LeadingZeros32874 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32874(secs) { if (secs < 0) { document.getElementById("cntdwns32874").innerHTML = FinishMessages32874; return; } DisplayStrs32874 = DisplayFormats32874.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32874 = DisplayStrs32874.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32874 = DisplayStrs32874.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32874 = DisplayStrs32874.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32874").innerHTML = DisplayStrs32874; if (CountActives32874) //alert(SetTimeOutPeriods32874); setTimeout("CountBacks32874(" + (secs+CountSteppers32874) + ")", SetTimeOutPeriods32874); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32874)=="undefined") BackColors32874 = ""; if (typeof(ForeColors32874)=="undefined") ForeColors32874= "white"; if (typeof(TargetDates32874)=="undefined") TargetDates32874 = "10/30/2025 9:00:00 PM"; if (typeof(DisplayFormats32874)=="undefined") DisplayFormats32874 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32874)=="undefined") CountActives32874 = true; if (typeof(FinishMessages32874)=="undefined") FinishMessages32874 = ""; if (typeof(CountSteppers32874)!="number") CountSteppers32874 = -1; if (typeof(LeadingZeros32874)=="undefined") LeadingZeros32874 = true; CountSteppers32874 = Math.ceil(CountSteppers32874); if (CountSteppers32874 == 0) CountActives32874 = false; var SetTimeOutPeriods32874 = (Math.abs(CountSteppers32874)-1)*1000 + 990; puti(BackColors32874, ForeColors32874); var dthens32874 = new Date(TargetDates32874); var dnows32874 = new Date("10/28/2025 1:42:33 PM"); if(CountSteppers32874>0) ddiffs32874 = new Date(dnows32874-dthens32874); else ddiffs32874 = new Date(dthens32874-dnows32874); gsecss32874 = Math.floor(ddiffs32874.valueOf()/1000); CountBacks32874(gsecss32874);