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 (LeadingZeros28223 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28223(secs) { if (secs < 0) { document.getElementById("cntdwns28223").innerHTML = FinishMessages28223; return; } DisplayStrs28223 = DisplayFormats28223.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28223 = DisplayStrs28223.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28223 = DisplayStrs28223.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28223 = DisplayStrs28223.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28223").innerHTML = DisplayStrs28223; if (CountActives28223) //alert(SetTimeOutPeriods28223); setTimeout("CountBacks28223(" + (secs+CountSteppers28223) + ")", SetTimeOutPeriods28223); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28223)=="undefined") BackColors28223 = ""; if (typeof(ForeColors28223)=="undefined") ForeColors28223= "white"; if (typeof(TargetDates28223)=="undefined") TargetDates28223 = "05/31/2023 10:00:00 PM"; if (typeof(DisplayFormats28223)=="undefined") DisplayFormats28223 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28223)=="undefined") CountActives28223 = true; if (typeof(FinishMessages28223)=="undefined") FinishMessages28223 = ""; if (typeof(CountSteppers28223)!="number") CountSteppers28223 = -1; if (typeof(LeadingZeros28223)=="undefined") LeadingZeros28223 = true; CountSteppers28223 = Math.ceil(CountSteppers28223); if (CountSteppers28223 == 0) CountActives28223 = false; var SetTimeOutPeriods28223 = (Math.abs(CountSteppers28223)-1)*1000 + 990; puti(BackColors28223, ForeColors28223); var dthens28223 = new Date(TargetDates28223); var dnows28223 = new Date("05/11/2025 4:43:53 AM"); if(CountSteppers28223>0) ddiffs28223 = new Date(dnows28223-dthens28223); else ddiffs28223 = new Date(dthens28223-dnows28223); gsecss28223 = Math.floor(ddiffs28223.valueOf()/1000); CountBacks28223(gsecss28223);