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 (LeadingZeros28361 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28361(secs) { if (secs < 0) { document.getElementById("cntdwns28361").innerHTML = FinishMessages28361; return; } DisplayStrs28361 = DisplayFormats28361.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28361 = DisplayStrs28361.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28361 = DisplayStrs28361.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28361 = DisplayStrs28361.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28361").innerHTML = DisplayStrs28361; if (CountActives28361) //alert(SetTimeOutPeriods28361); setTimeout("CountBacks28361(" + (secs+CountSteppers28361) + ")", SetTimeOutPeriods28361); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28361)=="undefined") BackColors28361 = ""; if (typeof(ForeColors28361)=="undefined") ForeColors28361= "white"; if (typeof(TargetDates28361)=="undefined") TargetDates28361 = "09/25/2023 10:00:00 PM"; if (typeof(DisplayFormats28361)=="undefined") DisplayFormats28361 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28361)=="undefined") CountActives28361 = true; if (typeof(FinishMessages28361)=="undefined") FinishMessages28361 = ""; if (typeof(CountSteppers28361)!="number") CountSteppers28361 = -1; if (typeof(LeadingZeros28361)=="undefined") LeadingZeros28361 = true; CountSteppers28361 = Math.ceil(CountSteppers28361); if (CountSteppers28361 == 0) CountActives28361 = false; var SetTimeOutPeriods28361 = (Math.abs(CountSteppers28361)-1)*1000 + 990; puti(BackColors28361, ForeColors28361); var dthens28361 = new Date(TargetDates28361); var dnows28361 = new Date("05/11/2025 10:54:58 AM"); if(CountSteppers28361>0) ddiffs28361 = new Date(dnows28361-dthens28361); else ddiffs28361 = new Date(dthens28361-dnows28361); gsecss28361 = Math.floor(ddiffs28361.valueOf()/1000); CountBacks28361(gsecss28361);