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 (LeadingZeros28064 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28064(secs) { if (secs < 0) { document.getElementById("cntdwns28064").innerHTML = FinishMessages28064; return; } DisplayStrs28064 = DisplayFormats28064.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28064 = DisplayStrs28064.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28064 = DisplayStrs28064.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28064 = DisplayStrs28064.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28064").innerHTML = DisplayStrs28064; if (CountActives28064) //alert(SetTimeOutPeriods28064); setTimeout("CountBacks28064(" + (secs+CountSteppers28064) + ")", SetTimeOutPeriods28064); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28064)=="undefined") BackColors28064 = ""; if (typeof(ForeColors28064)=="undefined") ForeColors28064= "white"; if (typeof(TargetDates28064)=="undefined") TargetDates28064 = "03/30/2023 11:00:00 PM"; if (typeof(DisplayFormats28064)=="undefined") DisplayFormats28064 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28064)=="undefined") CountActives28064 = true; if (typeof(FinishMessages28064)=="undefined") FinishMessages28064 = ""; if (typeof(CountSteppers28064)!="number") CountSteppers28064 = -1; if (typeof(LeadingZeros28064)=="undefined") LeadingZeros28064 = true; CountSteppers28064 = Math.ceil(CountSteppers28064); if (CountSteppers28064 == 0) CountActives28064 = false; var SetTimeOutPeriods28064 = (Math.abs(CountSteppers28064)-1)*1000 + 990; puti(BackColors28064, ForeColors28064); var dthens28064 = new Date(TargetDates28064); var dnows28064 = new Date("05/13/2025 7:59:36 AM"); if(CountSteppers28064>0) ddiffs28064 = new Date(dnows28064-dthens28064); else ddiffs28064 = new Date(dthens28064-dnows28064); gsecss28064 = Math.floor(ddiffs28064.valueOf()/1000); CountBacks28064(gsecss28064);