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 (LeadingZeros28384 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28384(secs) { if (secs < 0) { document.getElementById("cntdwns28384").innerHTML = FinishMessages28384; return; } DisplayStrs28384 = DisplayFormats28384.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28384 = DisplayStrs28384.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28384 = DisplayStrs28384.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28384 = DisplayStrs28384.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28384").innerHTML = DisplayStrs28384; if (CountActives28384) //alert(SetTimeOutPeriods28384); setTimeout("CountBacks28384(" + (secs+CountSteppers28384) + ")", SetTimeOutPeriods28384); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28384)=="undefined") BackColors28384 = ""; if (typeof(ForeColors28384)=="undefined") ForeColors28384= "white"; if (typeof(TargetDates28384)=="undefined") TargetDates28384 = "06/05/2023 10:00:00 PM"; if (typeof(DisplayFormats28384)=="undefined") DisplayFormats28384 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28384)=="undefined") CountActives28384 = true; if (typeof(FinishMessages28384)=="undefined") FinishMessages28384 = ""; if (typeof(CountSteppers28384)!="number") CountSteppers28384 = -1; if (typeof(LeadingZeros28384)=="undefined") LeadingZeros28384 = true; CountSteppers28384 = Math.ceil(CountSteppers28384); if (CountSteppers28384 == 0) CountActives28384 = false; var SetTimeOutPeriods28384 = (Math.abs(CountSteppers28384)-1)*1000 + 990; puti(BackColors28384, ForeColors28384); var dthens28384 = new Date(TargetDates28384); var dnows28384 = new Date("05/09/2025 10:06:58 AM"); if(CountSteppers28384>0) ddiffs28384 = new Date(dnows28384-dthens28384); else ddiffs28384 = new Date(dthens28384-dnows28384); gsecss28384 = Math.floor(ddiffs28384.valueOf()/1000); CountBacks28384(gsecss28384);