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 (LeadingZeros28335 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28335(secs) { if (secs < 0) { document.getElementById("cntdwns28335").innerHTML = FinishMessages28335; return; } DisplayStrs28335 = DisplayFormats28335.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28335 = DisplayStrs28335.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28335 = DisplayStrs28335.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28335 = DisplayStrs28335.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28335").innerHTML = DisplayStrs28335; if (CountActives28335) //alert(SetTimeOutPeriods28335); setTimeout("CountBacks28335(" + (secs+CountSteppers28335) + ")", SetTimeOutPeriods28335); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28335)=="undefined") BackColors28335 = ""; if (typeof(ForeColors28335)=="undefined") ForeColors28335= "white"; if (typeof(TargetDates28335)=="undefined") TargetDates28335 = "05/30/2023 10:00:00 PM"; if (typeof(DisplayFormats28335)=="undefined") DisplayFormats28335 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28335)=="undefined") CountActives28335 = true; if (typeof(FinishMessages28335)=="undefined") FinishMessages28335 = ""; if (typeof(CountSteppers28335)!="number") CountSteppers28335 = -1; if (typeof(LeadingZeros28335)=="undefined") LeadingZeros28335 = true; CountSteppers28335 = Math.ceil(CountSteppers28335); if (CountSteppers28335 == 0) CountActives28335 = false; var SetTimeOutPeriods28335 = (Math.abs(CountSteppers28335)-1)*1000 + 990; puti(BackColors28335, ForeColors28335); var dthens28335 = new Date(TargetDates28335); var dnows28335 = new Date("05/11/2025 2:13:13 PM"); if(CountSteppers28335>0) ddiffs28335 = new Date(dnows28335-dthens28335); else ddiffs28335 = new Date(dthens28335-dnows28335); gsecss28335 = Math.floor(ddiffs28335.valueOf()/1000); CountBacks28335(gsecss28335);