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 (LeadingZeros28483 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28483(secs) { if (secs < 0) { document.getElementById("cntdwns28483").innerHTML = FinishMessages28483; return; } DisplayStrs28483 = DisplayFormats28483.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28483 = DisplayStrs28483.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28483 = DisplayStrs28483.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28483 = DisplayStrs28483.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28483").innerHTML = DisplayStrs28483; if (CountActives28483) //alert(SetTimeOutPeriods28483); setTimeout("CountBacks28483(" + (secs+CountSteppers28483) + ")", SetTimeOutPeriods28483); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28483)=="undefined") BackColors28483 = ""; if (typeof(ForeColors28483)=="undefined") ForeColors28483= "white"; if (typeof(TargetDates28483)=="undefined") TargetDates28483 = "05/30/2023 10:00:00 PM"; if (typeof(DisplayFormats28483)=="undefined") DisplayFormats28483 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28483)=="undefined") CountActives28483 = true; if (typeof(FinishMessages28483)=="undefined") FinishMessages28483 = ""; if (typeof(CountSteppers28483)!="number") CountSteppers28483 = -1; if (typeof(LeadingZeros28483)=="undefined") LeadingZeros28483 = true; CountSteppers28483 = Math.ceil(CountSteppers28483); if (CountSteppers28483 == 0) CountActives28483 = false; var SetTimeOutPeriods28483 = (Math.abs(CountSteppers28483)-1)*1000 + 990; puti(BackColors28483, ForeColors28483); var dthens28483 = new Date(TargetDates28483); var dnows28483 = new Date("05/11/2025 9:00:36 PM"); if(CountSteppers28483>0) ddiffs28483 = new Date(dnows28483-dthens28483); else ddiffs28483 = new Date(dthens28483-dnows28483); gsecss28483 = Math.floor(ddiffs28483.valueOf()/1000); CountBacks28483(gsecss28483);