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 (LeadingZeros28262 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28262(secs) { if (secs < 0) { document.getElementById("cntdwns28262").innerHTML = FinishMessages28262; return; } DisplayStrs28262 = DisplayFormats28262.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28262 = DisplayStrs28262.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28262 = DisplayStrs28262.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28262 = DisplayStrs28262.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28262").innerHTML = DisplayStrs28262; if (CountActives28262) //alert(SetTimeOutPeriods28262); setTimeout("CountBacks28262(" + (secs+CountSteppers28262) + ")", SetTimeOutPeriods28262); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28262)=="undefined") BackColors28262 = ""; if (typeof(ForeColors28262)=="undefined") ForeColors28262= "white"; if (typeof(TargetDates28262)=="undefined") TargetDates28262 = "06/12/2023 10:00:00 PM"; if (typeof(DisplayFormats28262)=="undefined") DisplayFormats28262 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28262)=="undefined") CountActives28262 = true; if (typeof(FinishMessages28262)=="undefined") FinishMessages28262 = ""; if (typeof(CountSteppers28262)!="number") CountSteppers28262 = -1; if (typeof(LeadingZeros28262)=="undefined") LeadingZeros28262 = true; CountSteppers28262 = Math.ceil(CountSteppers28262); if (CountSteppers28262 == 0) CountActives28262 = false; var SetTimeOutPeriods28262 = (Math.abs(CountSteppers28262)-1)*1000 + 990; puti(BackColors28262, ForeColors28262); var dthens28262 = new Date(TargetDates28262); var dnows28262 = new Date("05/09/2025 10:10:29 AM"); if(CountSteppers28262>0) ddiffs28262 = new Date(dnows28262-dthens28262); else ddiffs28262 = new Date(dthens28262-dnows28262); gsecss28262 = Math.floor(ddiffs28262.valueOf()/1000); CountBacks28262(gsecss28262);