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 (LeadingZeros28073 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28073(secs) { if (secs < 0) { document.getElementById("cntdwns28073").innerHTML = FinishMessages28073; return; } DisplayStrs28073 = DisplayFormats28073.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28073 = DisplayStrs28073.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28073 = DisplayStrs28073.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28073 = DisplayStrs28073.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28073").innerHTML = DisplayStrs28073; if (CountActives28073) //alert(SetTimeOutPeriods28073); setTimeout("CountBacks28073(" + (secs+CountSteppers28073) + ")", SetTimeOutPeriods28073); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28073)=="undefined") BackColors28073 = ""; if (typeof(ForeColors28073)=="undefined") ForeColors28073= "white"; if (typeof(TargetDates28073)=="undefined") TargetDates28073 = "05/31/2023 10:00:00 PM"; if (typeof(DisplayFormats28073)=="undefined") DisplayFormats28073 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28073)=="undefined") CountActives28073 = true; if (typeof(FinishMessages28073)=="undefined") FinishMessages28073 = ""; if (typeof(CountSteppers28073)!="number") CountSteppers28073 = -1; if (typeof(LeadingZeros28073)=="undefined") LeadingZeros28073 = true; CountSteppers28073 = Math.ceil(CountSteppers28073); if (CountSteppers28073 == 0) CountActives28073 = false; var SetTimeOutPeriods28073 = (Math.abs(CountSteppers28073)-1)*1000 + 990; puti(BackColors28073, ForeColors28073); var dthens28073 = new Date(TargetDates28073); var dnows28073 = new Date("05/09/2025 10:08:43 AM"); if(CountSteppers28073>0) ddiffs28073 = new Date(dnows28073-dthens28073); else ddiffs28073 = new Date(dthens28073-dnows28073); gsecss28073 = Math.floor(ddiffs28073.valueOf()/1000); CountBacks28073(gsecss28073);