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 (LeadingZeros28481 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28481(secs) { if (secs < 0) { document.getElementById("cntdwns28481").innerHTML = FinishMessages28481; return; } DisplayStrs28481 = DisplayFormats28481.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28481 = DisplayStrs28481.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28481 = DisplayStrs28481.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28481 = DisplayStrs28481.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28481").innerHTML = DisplayStrs28481; if (CountActives28481) //alert(SetTimeOutPeriods28481); setTimeout("CountBacks28481(" + (secs+CountSteppers28481) + ")", SetTimeOutPeriods28481); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28481)=="undefined") BackColors28481 = ""; if (typeof(ForeColors28481)=="undefined") ForeColors28481= "white"; if (typeof(TargetDates28481)=="undefined") TargetDates28481 = "06/05/2023 10:00:00 PM"; if (typeof(DisplayFormats28481)=="undefined") DisplayFormats28481 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28481)=="undefined") CountActives28481 = true; if (typeof(FinishMessages28481)=="undefined") FinishMessages28481 = ""; if (typeof(CountSteppers28481)!="number") CountSteppers28481 = -1; if (typeof(LeadingZeros28481)=="undefined") LeadingZeros28481 = true; CountSteppers28481 = Math.ceil(CountSteppers28481); if (CountSteppers28481 == 0) CountActives28481 = false; var SetTimeOutPeriods28481 = (Math.abs(CountSteppers28481)-1)*1000 + 990; puti(BackColors28481, ForeColors28481); var dthens28481 = new Date(TargetDates28481); var dnows28481 = new Date("05/12/2025 2:51:25 PM"); if(CountSteppers28481>0) ddiffs28481 = new Date(dnows28481-dthens28481); else ddiffs28481 = new Date(dthens28481-dnows28481); gsecss28481 = Math.floor(ddiffs28481.valueOf()/1000); CountBacks28481(gsecss28481);