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 (LeadingZeros32910 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32910(secs) { if (secs < 0) { document.getElementById("cntdwns32910").innerHTML = FinishMessages32910; return; } DisplayStrs32910 = DisplayFormats32910.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32910 = DisplayStrs32910.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32910 = DisplayStrs32910.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32910 = DisplayStrs32910.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32910").innerHTML = DisplayStrs32910; if (CountActives32910) //alert(SetTimeOutPeriods32910); setTimeout("CountBacks32910(" + (secs+CountSteppers32910) + ")", SetTimeOutPeriods32910); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32910)=="undefined") BackColors32910 = ""; if (typeof(ForeColors32910)=="undefined") ForeColors32910= "white"; if (typeof(TargetDates32910)=="undefined") TargetDates32910 = "10/18/2025 10:00:00 PM"; if (typeof(DisplayFormats32910)=="undefined") DisplayFormats32910 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32910)=="undefined") CountActives32910 = true; if (typeof(FinishMessages32910)=="undefined") FinishMessages32910 = ""; if (typeof(CountSteppers32910)!="number") CountSteppers32910 = -1; if (typeof(LeadingZeros32910)=="undefined") LeadingZeros32910 = true; CountSteppers32910 = Math.ceil(CountSteppers32910); if (CountSteppers32910 == 0) CountActives32910 = false; var SetTimeOutPeriods32910 = (Math.abs(CountSteppers32910)-1)*1000 + 990; puti(BackColors32910, ForeColors32910); var dthens32910 = new Date(TargetDates32910); var dnows32910 = new Date("10/17/2025 7:52:07 AM"); if(CountSteppers32910>0) ddiffs32910 = new Date(dnows32910-dthens32910); else ddiffs32910 = new Date(dthens32910-dnows32910); gsecss32910 = Math.floor(ddiffs32910.valueOf()/1000); CountBacks32910(gsecss32910);