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 (LeadingZeros32827 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32827(secs) { if (secs < 0) { document.getElementById("cntdwns32827").innerHTML = FinishMessages32827; return; } DisplayStrs32827 = DisplayFormats32827.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32827 = DisplayStrs32827.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32827 = DisplayStrs32827.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32827 = DisplayStrs32827.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32827").innerHTML = DisplayStrs32827; if (CountActives32827) //alert(SetTimeOutPeriods32827); setTimeout("CountBacks32827(" + (secs+CountSteppers32827) + ")", SetTimeOutPeriods32827); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32827)=="undefined") BackColors32827 = ""; if (typeof(ForeColors32827)=="undefined") ForeColors32827= "white"; if (typeof(TargetDates32827)=="undefined") TargetDates32827 = "09/14/2025 10:00:00 PM"; if (typeof(DisplayFormats32827)=="undefined") DisplayFormats32827 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32827)=="undefined") CountActives32827 = true; if (typeof(FinishMessages32827)=="undefined") FinishMessages32827 = ""; if (typeof(CountSteppers32827)!="number") CountSteppers32827 = -1; if (typeof(LeadingZeros32827)=="undefined") LeadingZeros32827 = true; CountSteppers32827 = Math.ceil(CountSteppers32827); if (CountSteppers32827 == 0) CountActives32827 = false; var SetTimeOutPeriods32827 = (Math.abs(CountSteppers32827)-1)*1000 + 990; puti(BackColors32827, ForeColors32827); var dthens32827 = new Date(TargetDates32827); var dnows32827 = new Date("09/12/2025 5:43:37 PM"); if(CountSteppers32827>0) ddiffs32827 = new Date(dnows32827-dthens32827); else ddiffs32827 = new Date(dthens32827-dnows32827); gsecss32827 = Math.floor(ddiffs32827.valueOf()/1000); CountBacks32827(gsecss32827);