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 (LeadingZeros28214 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28214(secs) { if (secs < 0) { document.getElementById("cntdwns28214").innerHTML = FinishMessages28214; return; } DisplayStrs28214 = DisplayFormats28214.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28214 = DisplayStrs28214.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28214 = DisplayStrs28214.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28214 = DisplayStrs28214.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28214").innerHTML = DisplayStrs28214; if (CountActives28214) //alert(SetTimeOutPeriods28214); setTimeout("CountBacks28214(" + (secs+CountSteppers28214) + ")", SetTimeOutPeriods28214); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28214)=="undefined") BackColors28214 = ""; if (typeof(ForeColors28214)=="undefined") ForeColors28214= "white"; if (typeof(TargetDates28214)=="undefined") TargetDates28214 = "05/30/2023 10:00:00 PM"; if (typeof(DisplayFormats28214)=="undefined") DisplayFormats28214 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28214)=="undefined") CountActives28214 = true; if (typeof(FinishMessages28214)=="undefined") FinishMessages28214 = ""; if (typeof(CountSteppers28214)!="number") CountSteppers28214 = -1; if (typeof(LeadingZeros28214)=="undefined") LeadingZeros28214 = true; CountSteppers28214 = Math.ceil(CountSteppers28214); if (CountSteppers28214 == 0) CountActives28214 = false; var SetTimeOutPeriods28214 = (Math.abs(CountSteppers28214)-1)*1000 + 990; puti(BackColors28214, ForeColors28214); var dthens28214 = new Date(TargetDates28214); var dnows28214 = new Date("05/11/2025 1:33:45 AM"); if(CountSteppers28214>0) ddiffs28214 = new Date(dnows28214-dthens28214); else ddiffs28214 = new Date(dthens28214-dnows28214); gsecss28214 = Math.floor(ddiffs28214.valueOf()/1000); CountBacks28214(gsecss28214);