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 (LeadingZeros28077 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28077(secs) { if (secs < 0) { document.getElementById("cntdwns28077").innerHTML = FinishMessages28077; return; } DisplayStrs28077 = DisplayFormats28077.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28077 = DisplayStrs28077.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28077 = DisplayStrs28077.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28077 = DisplayStrs28077.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28077").innerHTML = DisplayStrs28077; if (CountActives28077) //alert(SetTimeOutPeriods28077); setTimeout("CountBacks28077(" + (secs+CountSteppers28077) + ")", SetTimeOutPeriods28077); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28077)=="undefined") BackColors28077 = ""; if (typeof(ForeColors28077)=="undefined") ForeColors28077= "white"; if (typeof(TargetDates28077)=="undefined") TargetDates28077 = "03/30/2023 11:00:00 PM"; if (typeof(DisplayFormats28077)=="undefined") DisplayFormats28077 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28077)=="undefined") CountActives28077 = true; if (typeof(FinishMessages28077)=="undefined") FinishMessages28077 = ""; if (typeof(CountSteppers28077)!="number") CountSteppers28077 = -1; if (typeof(LeadingZeros28077)=="undefined") LeadingZeros28077 = true; CountSteppers28077 = Math.ceil(CountSteppers28077); if (CountSteppers28077 == 0) CountActives28077 = false; var SetTimeOutPeriods28077 = (Math.abs(CountSteppers28077)-1)*1000 + 990; puti(BackColors28077, ForeColors28077); var dthens28077 = new Date(TargetDates28077); var dnows28077 = new Date("05/13/2025 11:58:55 AM"); if(CountSteppers28077>0) ddiffs28077 = new Date(dnows28077-dthens28077); else ddiffs28077 = new Date(dthens28077-dnows28077); gsecss28077 = Math.floor(ddiffs28077.valueOf()/1000); CountBacks28077(gsecss28077);