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 (LeadingZeros32023 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32023(secs) { if (secs < 0) { document.getElementById("cntdwns32023").innerHTML = FinishMessages32023; return; } DisplayStrs32023 = DisplayFormats32023.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32023 = DisplayStrs32023.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32023 = DisplayStrs32023.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32023 = DisplayStrs32023.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32023").innerHTML = DisplayStrs32023; if (CountActives32023) //alert(SetTimeOutPeriods32023); setTimeout("CountBacks32023(" + (secs+CountSteppers32023) + ")", SetTimeOutPeriods32023); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32023)=="undefined") BackColors32023 = ""; if (typeof(ForeColors32023)=="undefined") ForeColors32023= "white"; if (typeof(TargetDates32023)=="undefined") TargetDates32023 = "03/29/2025 10:00:00 PM"; if (typeof(DisplayFormats32023)=="undefined") DisplayFormats32023 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32023)=="undefined") CountActives32023 = true; if (typeof(FinishMessages32023)=="undefined") FinishMessages32023 = ""; if (typeof(CountSteppers32023)!="number") CountSteppers32023 = -1; if (typeof(LeadingZeros32023)=="undefined") LeadingZeros32023 = true; CountSteppers32023 = Math.ceil(CountSteppers32023); if (CountSteppers32023 == 0) CountActives32023 = false; var SetTimeOutPeriods32023 = (Math.abs(CountSteppers32023)-1)*1000 + 990; puti(BackColors32023, ForeColors32023); var dthens32023 = new Date(TargetDates32023); var dnows32023 = new Date("03/29/2025 3:10:11 PM"); if(CountSteppers32023>0) ddiffs32023 = new Date(dnows32023-dthens32023); else ddiffs32023 = new Date(dthens32023-dnows32023); gsecss32023 = Math.floor(ddiffs32023.valueOf()/1000); CountBacks32023(gsecss32023);