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 (LeadingZeros32720 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32720(secs) { if (secs < 0) { document.getElementById("cntdwns32720").innerHTML = FinishMessages32720; return; } DisplayStrs32720 = DisplayFormats32720.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32720 = DisplayStrs32720.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32720 = DisplayStrs32720.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32720 = DisplayStrs32720.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32720").innerHTML = DisplayStrs32720; if (CountActives32720) //alert(SetTimeOutPeriods32720); setTimeout("CountBacks32720(" + (secs+CountSteppers32720) + ")", SetTimeOutPeriods32720); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32720)=="undefined") BackColors32720 = ""; if (typeof(ForeColors32720)=="undefined") ForeColors32720= "white"; if (typeof(TargetDates32720)=="undefined") TargetDates32720 = "09/20/2025 10:00:00 PM"; if (typeof(DisplayFormats32720)=="undefined") DisplayFormats32720 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32720)=="undefined") CountActives32720 = true; if (typeof(FinishMessages32720)=="undefined") FinishMessages32720 = ""; if (typeof(CountSteppers32720)!="number") CountSteppers32720 = -1; if (typeof(LeadingZeros32720)=="undefined") LeadingZeros32720 = true; CountSteppers32720 = Math.ceil(CountSteppers32720); if (CountSteppers32720 == 0) CountActives32720 = false; var SetTimeOutPeriods32720 = (Math.abs(CountSteppers32720)-1)*1000 + 990; puti(BackColors32720, ForeColors32720); var dthens32720 = new Date(TargetDates32720); var dnows32720 = new Date("09/18/2025 3:39:57 AM"); if(CountSteppers32720>0) ddiffs32720 = new Date(dnows32720-dthens32720); else ddiffs32720 = new Date(dthens32720-dnows32720); gsecss32720 = Math.floor(ddiffs32720.valueOf()/1000); CountBacks32720(gsecss32720);