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 (LeadingZeros32001 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32001(secs) { if (secs < 0) { document.getElementById("cntdwns32001").innerHTML = FinishMessages32001; return; } DisplayStrs32001 = DisplayFormats32001.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32001 = DisplayStrs32001.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32001 = DisplayStrs32001.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32001 = DisplayStrs32001.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32001").innerHTML = DisplayStrs32001; if (CountActives32001) //alert(SetTimeOutPeriods32001); setTimeout("CountBacks32001(" + (secs+CountSteppers32001) + ")", SetTimeOutPeriods32001); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32001)=="undefined") BackColors32001 = ""; if (typeof(ForeColors32001)=="undefined") ForeColors32001= "white"; if (typeof(TargetDates32001)=="undefined") TargetDates32001 = "09/19/2025 10:00:00 PM"; if (typeof(DisplayFormats32001)=="undefined") DisplayFormats32001 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32001)=="undefined") CountActives32001 = true; if (typeof(FinishMessages32001)=="undefined") FinishMessages32001 = ""; if (typeof(CountSteppers32001)!="number") CountSteppers32001 = -1; if (typeof(LeadingZeros32001)=="undefined") LeadingZeros32001 = true; CountSteppers32001 = Math.ceil(CountSteppers32001); if (CountSteppers32001 == 0) CountActives32001 = false; var SetTimeOutPeriods32001 = (Math.abs(CountSteppers32001)-1)*1000 + 990; puti(BackColors32001, ForeColors32001); var dthens32001 = new Date(TargetDates32001); var dnows32001 = new Date("09/17/2025 6:20:28 AM"); if(CountSteppers32001>0) ddiffs32001 = new Date(dnows32001-dthens32001); else ddiffs32001 = new Date(dthens32001-dnows32001); gsecss32001 = Math.floor(ddiffs32001.valueOf()/1000); CountBacks32001(gsecss32001);