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 (LeadingZeros32909 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32909(secs) { if (secs < 0) { document.getElementById("cntdwns32909").innerHTML = FinishMessages32909; return; } DisplayStrs32909 = DisplayFormats32909.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32909 = DisplayStrs32909.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32909 = DisplayStrs32909.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32909 = DisplayStrs32909.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32909").innerHTML = DisplayStrs32909; if (CountActives32909) //alert(SetTimeOutPeriods32909); setTimeout("CountBacks32909(" + (secs+CountSteppers32909) + ")", SetTimeOutPeriods32909); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32909)=="undefined") BackColors32909 = ""; if (typeof(ForeColors32909)=="undefined") ForeColors32909= "white"; if (typeof(TargetDates32909)=="undefined") TargetDates32909 = "10/18/2025 10:00:00 PM"; if (typeof(DisplayFormats32909)=="undefined") DisplayFormats32909 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32909)=="undefined") CountActives32909 = true; if (typeof(FinishMessages32909)=="undefined") FinishMessages32909 = ""; if (typeof(CountSteppers32909)!="number") CountSteppers32909 = -1; if (typeof(LeadingZeros32909)=="undefined") LeadingZeros32909 = true; CountSteppers32909 = Math.ceil(CountSteppers32909); if (CountSteppers32909 == 0) CountActives32909 = false; var SetTimeOutPeriods32909 = (Math.abs(CountSteppers32909)-1)*1000 + 990; puti(BackColors32909, ForeColors32909); var dthens32909 = new Date(TargetDates32909); var dnows32909 = new Date("10/17/2025 7:52:06 AM"); if(CountSteppers32909>0) ddiffs32909 = new Date(dnows32909-dthens32909); else ddiffs32909 = new Date(dthens32909-dnows32909); gsecss32909 = Math.floor(ddiffs32909.valueOf()/1000); CountBacks32909(gsecss32909);