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 (LeadingZeros28048 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28048(secs) { if (secs < 0) { document.getElementById("cntdwns28048").innerHTML = FinishMessages28048; return; } DisplayStrs28048 = DisplayFormats28048.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28048 = DisplayStrs28048.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28048 = DisplayStrs28048.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28048 = DisplayStrs28048.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28048").innerHTML = DisplayStrs28048; if (CountActives28048) //alert(SetTimeOutPeriods28048); setTimeout("CountBacks28048(" + (secs+CountSteppers28048) + ")", SetTimeOutPeriods28048); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28048)=="undefined") BackColors28048 = ""; if (typeof(ForeColors28048)=="undefined") ForeColors28048= "white"; if (typeof(TargetDates28048)=="undefined") TargetDates28048 = "04/01/2023 11:00:00 PM"; if (typeof(DisplayFormats28048)=="undefined") DisplayFormats28048 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28048)=="undefined") CountActives28048 = true; if (typeof(FinishMessages28048)=="undefined") FinishMessages28048 = ""; if (typeof(CountSteppers28048)!="number") CountSteppers28048 = -1; if (typeof(LeadingZeros28048)=="undefined") LeadingZeros28048 = true; CountSteppers28048 = Math.ceil(CountSteppers28048); if (CountSteppers28048 == 0) CountActives28048 = false; var SetTimeOutPeriods28048 = (Math.abs(CountSteppers28048)-1)*1000 + 990; puti(BackColors28048, ForeColors28048); var dthens28048 = new Date(TargetDates28048); var dnows28048 = new Date("05/13/2025 11:57:40 AM"); if(CountSteppers28048>0) ddiffs28048 = new Date(dnows28048-dthens28048); else ddiffs28048 = new Date(dthens28048-dnows28048); gsecss28048 = Math.floor(ddiffs28048.valueOf()/1000); CountBacks28048(gsecss28048);