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 (LeadingZeros28656 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28656(secs) { if (secs < 0) { document.getElementById("cntdwns28656").innerHTML = FinishMessages28656; return; } DisplayStrs28656 = DisplayFormats28656.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28656 = DisplayStrs28656.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28656 = DisplayStrs28656.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28656 = DisplayStrs28656.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28656").innerHTML = DisplayStrs28656; if (CountActives28656) //alert(SetTimeOutPeriods28656); setTimeout("CountBacks28656(" + (secs+CountSteppers28656) + ")", SetTimeOutPeriods28656); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28656)=="undefined") BackColors28656 = ""; if (typeof(ForeColors28656)=="undefined") ForeColors28656= "white"; if (typeof(TargetDates28656)=="undefined") TargetDates28656 = "06/12/2023 10:00:00 PM"; if (typeof(DisplayFormats28656)=="undefined") DisplayFormats28656 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28656)=="undefined") CountActives28656 = true; if (typeof(FinishMessages28656)=="undefined") FinishMessages28656 = ""; if (typeof(CountSteppers28656)!="number") CountSteppers28656 = -1; if (typeof(LeadingZeros28656)=="undefined") LeadingZeros28656 = true; CountSteppers28656 = Math.ceil(CountSteppers28656); if (CountSteppers28656 == 0) CountActives28656 = false; var SetTimeOutPeriods28656 = (Math.abs(CountSteppers28656)-1)*1000 + 990; puti(BackColors28656, ForeColors28656); var dthens28656 = new Date(TargetDates28656); var dnows28656 = new Date("05/09/2025 10:10:28 AM"); if(CountSteppers28656>0) ddiffs28656 = new Date(dnows28656-dthens28656); else ddiffs28656 = new Date(dthens28656-dnows28656); gsecss28656 = Math.floor(ddiffs28656.valueOf()/1000); CountBacks28656(gsecss28656);