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 (LeadingZeros28079 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28079(secs) { if (secs < 0) { document.getElementById("cntdwns28079").innerHTML = FinishMessages28079; return; } DisplayStrs28079 = DisplayFormats28079.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28079 = DisplayStrs28079.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28079 = DisplayStrs28079.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28079 = DisplayStrs28079.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28079").innerHTML = DisplayStrs28079; if (CountActives28079) //alert(SetTimeOutPeriods28079); setTimeout("CountBacks28079(" + (secs+CountSteppers28079) + ")", SetTimeOutPeriods28079); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28079)=="undefined") BackColors28079 = ""; if (typeof(ForeColors28079)=="undefined") ForeColors28079= "white"; if (typeof(TargetDates28079)=="undefined") TargetDates28079 = "03/30/2023 11:00:00 PM"; if (typeof(DisplayFormats28079)=="undefined") DisplayFormats28079 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28079)=="undefined") CountActives28079 = true; if (typeof(FinishMessages28079)=="undefined") FinishMessages28079 = ""; if (typeof(CountSteppers28079)!="number") CountSteppers28079 = -1; if (typeof(LeadingZeros28079)=="undefined") LeadingZeros28079 = true; CountSteppers28079 = Math.ceil(CountSteppers28079); if (CountSteppers28079 == 0) CountActives28079 = false; var SetTimeOutPeriods28079 = (Math.abs(CountSteppers28079)-1)*1000 + 990; puti(BackColors28079, ForeColors28079); var dthens28079 = new Date(TargetDates28079); var dnows28079 = new Date("05/13/2025 11:58:55 AM"); if(CountSteppers28079>0) ddiffs28079 = new Date(dnows28079-dthens28079); else ddiffs28079 = new Date(dthens28079-dnows28079); gsecss28079 = Math.floor(ddiffs28079.valueOf()/1000); CountBacks28079(gsecss28079);