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 (LeadingZeros32814 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32814(secs) { if (secs < 0) { document.getElementById("cntdwns32814").innerHTML = FinishMessages32814; return; } DisplayStrs32814 = DisplayFormats32814.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32814 = DisplayStrs32814.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32814 = DisplayStrs32814.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32814 = DisplayStrs32814.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32814").innerHTML = DisplayStrs32814; if (CountActives32814) //alert(SetTimeOutPeriods32814); setTimeout("CountBacks32814(" + (secs+CountSteppers32814) + ")", SetTimeOutPeriods32814); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32814)=="undefined") BackColors32814 = ""; if (typeof(ForeColors32814)=="undefined") ForeColors32814= "white"; if (typeof(TargetDates32814)=="undefined") TargetDates32814 = "09/20/2025 10:00:00 PM"; if (typeof(DisplayFormats32814)=="undefined") DisplayFormats32814 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32814)=="undefined") CountActives32814 = true; if (typeof(FinishMessages32814)=="undefined") FinishMessages32814 = ""; if (typeof(CountSteppers32814)!="number") CountSteppers32814 = -1; if (typeof(LeadingZeros32814)=="undefined") LeadingZeros32814 = true; CountSteppers32814 = Math.ceil(CountSteppers32814); if (CountSteppers32814 == 0) CountActives32814 = false; var SetTimeOutPeriods32814 = (Math.abs(CountSteppers32814)-1)*1000 + 990; puti(BackColors32814, ForeColors32814); var dthens32814 = new Date(TargetDates32814); var dnows32814 = new Date("09/18/2025 1:01:07 PM"); if(CountSteppers32814>0) ddiffs32814 = new Date(dnows32814-dthens32814); else ddiffs32814 = new Date(dthens32814-dnows32814); gsecss32814 = Math.floor(ddiffs32814.valueOf()/1000); CountBacks32814(gsecss32814);