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 (LeadingZeros28461 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28461(secs) { if (secs < 0) { document.getElementById("cntdwns28461").innerHTML = FinishMessages28461; return; } DisplayStrs28461 = DisplayFormats28461.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28461 = DisplayStrs28461.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28461 = DisplayStrs28461.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28461 = DisplayStrs28461.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28461").innerHTML = DisplayStrs28461; if (CountActives28461) //alert(SetTimeOutPeriods28461); setTimeout("CountBacks28461(" + (secs+CountSteppers28461) + ")", SetTimeOutPeriods28461); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28461)=="undefined") BackColors28461 = ""; if (typeof(ForeColors28461)=="undefined") ForeColors28461= "white"; if (typeof(TargetDates28461)=="undefined") TargetDates28461 = "05/31/2023 10:00:00 PM"; if (typeof(DisplayFormats28461)=="undefined") DisplayFormats28461 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28461)=="undefined") CountActives28461 = true; if (typeof(FinishMessages28461)=="undefined") FinishMessages28461 = ""; if (typeof(CountSteppers28461)!="number") CountSteppers28461 = -1; if (typeof(LeadingZeros28461)=="undefined") LeadingZeros28461 = true; CountSteppers28461 = Math.ceil(CountSteppers28461); if (CountSteppers28461 == 0) CountActives28461 = false; var SetTimeOutPeriods28461 = (Math.abs(CountSteppers28461)-1)*1000 + 990; puti(BackColors28461, ForeColors28461); var dthens28461 = new Date(TargetDates28461); var dnows28461 = new Date("05/11/2025 2:13:14 PM"); if(CountSteppers28461>0) ddiffs28461 = new Date(dnows28461-dthens28461); else ddiffs28461 = new Date(dthens28461-dnows28461); gsecss28461 = Math.floor(ddiffs28461.valueOf()/1000); CountBacks28461(gsecss28461);