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 (LeadingZeros28401 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28401(secs) { if (secs < 0) { document.getElementById("cntdwns28401").innerHTML = FinishMessages28401; return; } DisplayStrs28401 = DisplayFormats28401.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28401 = DisplayStrs28401.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28401 = DisplayStrs28401.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28401 = DisplayStrs28401.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28401").innerHTML = DisplayStrs28401; if (CountActives28401) //alert(SetTimeOutPeriods28401); setTimeout("CountBacks28401(" + (secs+CountSteppers28401) + ")", SetTimeOutPeriods28401); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28401)=="undefined") BackColors28401 = ""; if (typeof(ForeColors28401)=="undefined") ForeColors28401= "white"; if (typeof(TargetDates28401)=="undefined") TargetDates28401 = "06/08/2023 10:00:00 PM"; if (typeof(DisplayFormats28401)=="undefined") DisplayFormats28401 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28401)=="undefined") CountActives28401 = true; if (typeof(FinishMessages28401)=="undefined") FinishMessages28401 = ""; if (typeof(CountSteppers28401)!="number") CountSteppers28401 = -1; if (typeof(LeadingZeros28401)=="undefined") LeadingZeros28401 = true; CountSteppers28401 = Math.ceil(CountSteppers28401); if (CountSteppers28401 == 0) CountActives28401 = false; var SetTimeOutPeriods28401 = (Math.abs(CountSteppers28401)-1)*1000 + 990; puti(BackColors28401, ForeColors28401); var dthens28401 = new Date(TargetDates28401); var dnows28401 = new Date("05/11/2025 8:59:11 PM"); if(CountSteppers28401>0) ddiffs28401 = new Date(dnows28401-dthens28401); else ddiffs28401 = new Date(dthens28401-dnows28401); gsecss28401 = Math.floor(ddiffs28401.valueOf()/1000); CountBacks28401(gsecss28401);