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 (LeadingZeros28462 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28462(secs) { if (secs < 0) { document.getElementById("cntdwns28462").innerHTML = FinishMessages28462; return; } DisplayStrs28462 = DisplayFormats28462.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28462 = DisplayStrs28462.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28462 = DisplayStrs28462.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28462 = DisplayStrs28462.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28462").innerHTML = DisplayStrs28462; if (CountActives28462) //alert(SetTimeOutPeriods28462); setTimeout("CountBacks28462(" + (secs+CountSteppers28462) + ")", SetTimeOutPeriods28462); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28462)=="undefined") BackColors28462 = ""; if (typeof(ForeColors28462)=="undefined") ForeColors28462= "white"; if (typeof(TargetDates28462)=="undefined") TargetDates28462 = "06/05/2023 10:00:00 PM"; if (typeof(DisplayFormats28462)=="undefined") DisplayFormats28462 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28462)=="undefined") CountActives28462 = true; if (typeof(FinishMessages28462)=="undefined") FinishMessages28462 = ""; if (typeof(CountSteppers28462)!="number") CountSteppers28462 = -1; if (typeof(LeadingZeros28462)=="undefined") LeadingZeros28462 = true; CountSteppers28462 = Math.ceil(CountSteppers28462); if (CountSteppers28462 == 0) CountActives28462 = false; var SetTimeOutPeriods28462 = (Math.abs(CountSteppers28462)-1)*1000 + 990; puti(BackColors28462, ForeColors28462); var dthens28462 = new Date(TargetDates28462); var dnows28462 = new Date("05/11/2025 4:43:53 AM"); if(CountSteppers28462>0) ddiffs28462 = new Date(dnows28462-dthens28462); else ddiffs28462 = new Date(dthens28462-dnows28462); gsecss28462 = Math.floor(ddiffs28462.valueOf()/1000); CountBacks28462(gsecss28462);