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 (LeadingZeros28556 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28556(secs) { if (secs < 0) { document.getElementById("cntdwns28556").innerHTML = FinishMessages28556; return; } DisplayStrs28556 = DisplayFormats28556.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28556 = DisplayStrs28556.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28556 = DisplayStrs28556.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28556 = DisplayStrs28556.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28556").innerHTML = DisplayStrs28556; if (CountActives28556) //alert(SetTimeOutPeriods28556); setTimeout("CountBacks28556(" + (secs+CountSteppers28556) + ")", SetTimeOutPeriods28556); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28556)=="undefined") BackColors28556 = ""; if (typeof(ForeColors28556)=="undefined") ForeColors28556= "white"; if (typeof(TargetDates28556)=="undefined") TargetDates28556 = "12/04/2023 9:00:00 PM"; if (typeof(DisplayFormats28556)=="undefined") DisplayFormats28556 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28556)=="undefined") CountActives28556 = true; if (typeof(FinishMessages28556)=="undefined") FinishMessages28556 = ""; if (typeof(CountSteppers28556)!="number") CountSteppers28556 = -1; if (typeof(LeadingZeros28556)=="undefined") LeadingZeros28556 = true; CountSteppers28556 = Math.ceil(CountSteppers28556); if (CountSteppers28556 == 0) CountActives28556 = false; var SetTimeOutPeriods28556 = (Math.abs(CountSteppers28556)-1)*1000 + 990; puti(BackColors28556, ForeColors28556); var dthens28556 = new Date(TargetDates28556); var dnows28556 = new Date("05/09/2025 12:56:59 PM"); if(CountSteppers28556>0) ddiffs28556 = new Date(dnows28556-dthens28556); else ddiffs28556 = new Date(dthens28556-dnows28556); gsecss28556 = Math.floor(ddiffs28556.valueOf()/1000); CountBacks28556(gsecss28556);