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 (LeadingZeros31999 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31999(secs) { if (secs < 0) { document.getElementById("cntdwns31999").innerHTML = FinishMessages31999; return; } DisplayStrs31999 = DisplayFormats31999.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31999 = DisplayStrs31999.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31999 = DisplayStrs31999.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31999 = DisplayStrs31999.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31999").innerHTML = DisplayStrs31999; if (CountActives31999) //alert(SetTimeOutPeriods31999); setTimeout("CountBacks31999(" + (secs+CountSteppers31999) + ")", SetTimeOutPeriods31999); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31999)=="undefined") BackColors31999 = ""; if (typeof(ForeColors31999)=="undefined") ForeColors31999= "white"; if (typeof(TargetDates31999)=="undefined") TargetDates31999 = "09/19/2025 10:00:00 PM"; if (typeof(DisplayFormats31999)=="undefined") DisplayFormats31999 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31999)=="undefined") CountActives31999 = true; if (typeof(FinishMessages31999)=="undefined") FinishMessages31999 = ""; if (typeof(CountSteppers31999)!="number") CountSteppers31999 = -1; if (typeof(LeadingZeros31999)=="undefined") LeadingZeros31999 = true; CountSteppers31999 = Math.ceil(CountSteppers31999); if (CountSteppers31999 == 0) CountActives31999 = false; var SetTimeOutPeriods31999 = (Math.abs(CountSteppers31999)-1)*1000 + 990; puti(BackColors31999, ForeColors31999); var dthens31999 = new Date(TargetDates31999); var dnows31999 = new Date("09/17/2025 6:20:29 AM"); if(CountSteppers31999>0) ddiffs31999 = new Date(dnows31999-dthens31999); else ddiffs31999 = new Date(dthens31999-dnows31999); gsecss31999 = Math.floor(ddiffs31999.valueOf()/1000); CountBacks31999(gsecss31999);