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 (LeadingZeros32020 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32020(secs) { if (secs < 0) { document.getElementById("cntdwns32020").innerHTML = FinishMessages32020; return; } DisplayStrs32020 = DisplayFormats32020.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32020 = DisplayStrs32020.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32020 = DisplayStrs32020.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32020 = DisplayStrs32020.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32020").innerHTML = DisplayStrs32020; if (CountActives32020) //alert(SetTimeOutPeriods32020); setTimeout("CountBacks32020(" + (secs+CountSteppers32020) + ")", SetTimeOutPeriods32020); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32020)=="undefined") BackColors32020 = ""; if (typeof(ForeColors32020)=="undefined") ForeColors32020= "white"; if (typeof(TargetDates32020)=="undefined") TargetDates32020 = "03/31/2025 11:00:00 PM"; if (typeof(DisplayFormats32020)=="undefined") DisplayFormats32020 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32020)=="undefined") CountActives32020 = true; if (typeof(FinishMessages32020)=="undefined") FinishMessages32020 = ""; if (typeof(CountSteppers32020)!="number") CountSteppers32020 = -1; if (typeof(LeadingZeros32020)=="undefined") LeadingZeros32020 = true; CountSteppers32020 = Math.ceil(CountSteppers32020); if (CountSteppers32020 == 0) CountActives32020 = false; var SetTimeOutPeriods32020 = (Math.abs(CountSteppers32020)-1)*1000 + 990; puti(BackColors32020, ForeColors32020); var dthens32020 = new Date(TargetDates32020); var dnows32020 = new Date("03/31/2025 4:18:34 PM"); if(CountSteppers32020>0) ddiffs32020 = new Date(dnows32020-dthens32020); else ddiffs32020 = new Date(dthens32020-dnows32020); gsecss32020 = Math.floor(ddiffs32020.valueOf()/1000); CountBacks32020(gsecss32020);