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 (LeadingZeros28533 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28533(secs) { if (secs < 0) { document.getElementById("cntdwns28533").innerHTML = FinishMessages28533; return; } DisplayStrs28533 = DisplayFormats28533.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28533 = DisplayStrs28533.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28533 = DisplayStrs28533.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28533 = DisplayStrs28533.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28533").innerHTML = DisplayStrs28533; if (CountActives28533) //alert(SetTimeOutPeriods28533); setTimeout("CountBacks28533(" + (secs+CountSteppers28533) + ")", SetTimeOutPeriods28533); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28533)=="undefined") BackColors28533 = ""; if (typeof(ForeColors28533)=="undefined") ForeColors28533= "white"; if (typeof(TargetDates28533)=="undefined") TargetDates28533 = "06/07/2023 10:00:00 PM"; if (typeof(DisplayFormats28533)=="undefined") DisplayFormats28533 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28533)=="undefined") CountActives28533 = true; if (typeof(FinishMessages28533)=="undefined") FinishMessages28533 = ""; if (typeof(CountSteppers28533)!="number") CountSteppers28533 = -1; if (typeof(LeadingZeros28533)=="undefined") LeadingZeros28533 = true; CountSteppers28533 = Math.ceil(CountSteppers28533); if (CountSteppers28533 == 0) CountActives28533 = false; var SetTimeOutPeriods28533 = (Math.abs(CountSteppers28533)-1)*1000 + 990; puti(BackColors28533, ForeColors28533); var dthens28533 = new Date(TargetDates28533); var dnows28533 = new Date("05/11/2025 5:44:01 PM"); if(CountSteppers28533>0) ddiffs28533 = new Date(dnows28533-dthens28533); else ddiffs28533 = new Date(dthens28533-dnows28533); gsecss28533 = Math.floor(ddiffs28533.valueOf()/1000); CountBacks28533(gsecss28533);