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 (LeadingZeros28167 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28167(secs) { if (secs < 0) { document.getElementById("cntdwns28167").innerHTML = FinishMessages28167; return; } DisplayStrs28167 = DisplayFormats28167.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28167 = DisplayStrs28167.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28167 = DisplayStrs28167.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28167 = DisplayStrs28167.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28167").innerHTML = DisplayStrs28167; if (CountActives28167) //alert(SetTimeOutPeriods28167); setTimeout("CountBacks28167(" + (secs+CountSteppers28167) + ")", SetTimeOutPeriods28167); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28167)=="undefined") BackColors28167 = ""; if (typeof(ForeColors28167)=="undefined") ForeColors28167= "white"; if (typeof(TargetDates28167)=="undefined") TargetDates28167 = "06/13/2023 11:00:00 PM"; if (typeof(DisplayFormats28167)=="undefined") DisplayFormats28167 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28167)=="undefined") CountActives28167 = true; if (typeof(FinishMessages28167)=="undefined") FinishMessages28167 = ""; if (typeof(CountSteppers28167)!="number") CountSteppers28167 = -1; if (typeof(LeadingZeros28167)=="undefined") LeadingZeros28167 = true; CountSteppers28167 = Math.ceil(CountSteppers28167); if (CountSteppers28167 == 0) CountActives28167 = false; var SetTimeOutPeriods28167 = (Math.abs(CountSteppers28167)-1)*1000 + 990; puti(BackColors28167, ForeColors28167); var dthens28167 = new Date(TargetDates28167); var dnows28167 = new Date("05/11/2025 7:46:32 AM"); if(CountSteppers28167>0) ddiffs28167 = new Date(dnows28167-dthens28167); else ddiffs28167 = new Date(dthens28167-dnows28167); gsecss28167 = Math.floor(ddiffs28167.valueOf()/1000); CountBacks28167(gsecss28167);