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 (LeadingZeros28668 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28668(secs) { if (secs < 0) { document.getElementById("cntdwns28668").innerHTML = FinishMessages28668; return; } DisplayStrs28668 = DisplayFormats28668.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28668 = DisplayStrs28668.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28668 = DisplayStrs28668.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28668 = DisplayStrs28668.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28668").innerHTML = DisplayStrs28668; if (CountActives28668) //alert(SetTimeOutPeriods28668); setTimeout("CountBacks28668(" + (secs+CountSteppers28668) + ")", SetTimeOutPeriods28668); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28668)=="undefined") BackColors28668 = ""; if (typeof(ForeColors28668)=="undefined") ForeColors28668= "white"; if (typeof(TargetDates28668)=="undefined") TargetDates28668 = "09/28/2023 10:00:00 PM"; if (typeof(DisplayFormats28668)=="undefined") DisplayFormats28668 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28668)=="undefined") CountActives28668 = true; if (typeof(FinishMessages28668)=="undefined") FinishMessages28668 = ""; if (typeof(CountSteppers28668)!="number") CountSteppers28668 = -1; if (typeof(LeadingZeros28668)=="undefined") LeadingZeros28668 = true; CountSteppers28668 = Math.ceil(CountSteppers28668); if (CountSteppers28668 == 0) CountActives28668 = false; var SetTimeOutPeriods28668 = (Math.abs(CountSteppers28668)-1)*1000 + 990; puti(BackColors28668, ForeColors28668); var dthens28668 = new Date(TargetDates28668); var dnows28668 = new Date("05/09/2025 10:08:41 AM"); if(CountSteppers28668>0) ddiffs28668 = new Date(dnows28668-dthens28668); else ddiffs28668 = new Date(dthens28668-dnows28668); gsecss28668 = Math.floor(ddiffs28668.valueOf()/1000); CountBacks28668(gsecss28668);