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 (LeadingZeros28281 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28281(secs) { if (secs < 0) { document.getElementById("cntdwns28281").innerHTML = FinishMessages28281; return; } DisplayStrs28281 = DisplayFormats28281.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28281 = DisplayStrs28281.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28281 = DisplayStrs28281.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28281 = DisplayStrs28281.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28281").innerHTML = DisplayStrs28281; if (CountActives28281) //alert(SetTimeOutPeriods28281); setTimeout("CountBacks28281(" + (secs+CountSteppers28281) + ")", SetTimeOutPeriods28281); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28281)=="undefined") BackColors28281 = ""; if (typeof(ForeColors28281)=="undefined") ForeColors28281= "white"; if (typeof(TargetDates28281)=="undefined") TargetDates28281 = "06/12/2023 10:00:00 PM"; if (typeof(DisplayFormats28281)=="undefined") DisplayFormats28281 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28281)=="undefined") CountActives28281 = true; if (typeof(FinishMessages28281)=="undefined") FinishMessages28281 = ""; if (typeof(CountSteppers28281)!="number") CountSteppers28281 = -1; if (typeof(LeadingZeros28281)=="undefined") LeadingZeros28281 = true; CountSteppers28281 = Math.ceil(CountSteppers28281); if (CountSteppers28281 == 0) CountActives28281 = false; var SetTimeOutPeriods28281 = (Math.abs(CountSteppers28281)-1)*1000 + 990; puti(BackColors28281, ForeColors28281); var dthens28281 = new Date(TargetDates28281); var dnows28281 = new Date("05/09/2025 10:09:34 AM"); if(CountSteppers28281>0) ddiffs28281 = new Date(dnows28281-dthens28281); else ddiffs28281 = new Date(dthens28281-dnows28281); gsecss28281 = Math.floor(ddiffs28281.valueOf()/1000); CountBacks28281(gsecss28281);