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 (LeadingZeros28372 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28372(secs) { if (secs < 0) { document.getElementById("cntdwns28372").innerHTML = FinishMessages28372; return; } DisplayStrs28372 = DisplayFormats28372.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28372 = DisplayStrs28372.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28372 = DisplayStrs28372.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28372 = DisplayStrs28372.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28372").innerHTML = DisplayStrs28372; if (CountActives28372) //alert(SetTimeOutPeriods28372); setTimeout("CountBacks28372(" + (secs+CountSteppers28372) + ")", SetTimeOutPeriods28372); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28372)=="undefined") BackColors28372 = ""; if (typeof(ForeColors28372)=="undefined") ForeColors28372= "white"; if (typeof(TargetDates28372)=="undefined") TargetDates28372 = "05/30/2023 10:00:00 PM"; if (typeof(DisplayFormats28372)=="undefined") DisplayFormats28372 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28372)=="undefined") CountActives28372 = true; if (typeof(FinishMessages28372)=="undefined") FinishMessages28372 = ""; if (typeof(CountSteppers28372)!="number") CountSteppers28372 = -1; if (typeof(LeadingZeros28372)=="undefined") LeadingZeros28372 = true; CountSteppers28372 = Math.ceil(CountSteppers28372); if (CountSteppers28372 == 0) CountActives28372 = false; var SetTimeOutPeriods28372 = (Math.abs(CountSteppers28372)-1)*1000 + 990; puti(BackColors28372, ForeColors28372); var dthens28372 = new Date(TargetDates28372); var dnows28372 = new Date("05/09/2025 10:07:50 AM"); if(CountSteppers28372>0) ddiffs28372 = new Date(dnows28372-dthens28372); else ddiffs28372 = new Date(dthens28372-dnows28372); gsecss28372 = Math.floor(ddiffs28372.valueOf()/1000); CountBacks28372(gsecss28372);