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 (LeadingZeros28472 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28472(secs) { if (secs < 0) { document.getElementById("cntdwns28472").innerHTML = FinishMessages28472; return; } DisplayStrs28472 = DisplayFormats28472.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28472 = DisplayStrs28472.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28472 = DisplayStrs28472.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28472 = DisplayStrs28472.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28472").innerHTML = DisplayStrs28472; if (CountActives28472) //alert(SetTimeOutPeriods28472); setTimeout("CountBacks28472(" + (secs+CountSteppers28472) + ")", SetTimeOutPeriods28472); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28472)=="undefined") BackColors28472 = ""; if (typeof(ForeColors28472)=="undefined") ForeColors28472= "white"; if (typeof(TargetDates28472)=="undefined") TargetDates28472 = "06/12/2023 10:00:00 PM"; if (typeof(DisplayFormats28472)=="undefined") DisplayFormats28472 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28472)=="undefined") CountActives28472 = true; if (typeof(FinishMessages28472)=="undefined") FinishMessages28472 = ""; if (typeof(CountSteppers28472)!="number") CountSteppers28472 = -1; if (typeof(LeadingZeros28472)=="undefined") LeadingZeros28472 = true; CountSteppers28472 = Math.ceil(CountSteppers28472); if (CountSteppers28472 == 0) CountActives28472 = false; var SetTimeOutPeriods28472 = (Math.abs(CountSteppers28472)-1)*1000 + 990; puti(BackColors28472, ForeColors28472); var dthens28472 = new Date(TargetDates28472); var dnows28472 = new Date("05/11/2025 2:14:16 PM"); if(CountSteppers28472>0) ddiffs28472 = new Date(dnows28472-dthens28472); else ddiffs28472 = new Date(dthens28472-dnows28472); gsecss28472 = Math.floor(ddiffs28472.valueOf()/1000); CountBacks28472(gsecss28472);