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 (LeadingZeros28174 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28174(secs) { if (secs < 0) { document.getElementById("cntdwns28174").innerHTML = FinishMessages28174; return; } DisplayStrs28174 = DisplayFormats28174.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28174 = DisplayStrs28174.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28174 = DisplayStrs28174.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28174 = DisplayStrs28174.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28174").innerHTML = DisplayStrs28174; if (CountActives28174) //alert(SetTimeOutPeriods28174); setTimeout("CountBacks28174(" + (secs+CountSteppers28174) + ")", SetTimeOutPeriods28174); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28174)=="undefined") BackColors28174 = ""; if (typeof(ForeColors28174)=="undefined") ForeColors28174= "white"; if (typeof(TargetDates28174)=="undefined") TargetDates28174 = "06/29/2023 10:00:00 PM"; if (typeof(DisplayFormats28174)=="undefined") DisplayFormats28174 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28174)=="undefined") CountActives28174 = true; if (typeof(FinishMessages28174)=="undefined") FinishMessages28174 = ""; if (typeof(CountSteppers28174)!="number") CountSteppers28174 = -1; if (typeof(LeadingZeros28174)=="undefined") LeadingZeros28174 = true; CountSteppers28174 = Math.ceil(CountSteppers28174); if (CountSteppers28174 == 0) CountActives28174 = false; var SetTimeOutPeriods28174 = (Math.abs(CountSteppers28174)-1)*1000 + 990; puti(BackColors28174, ForeColors28174); var dthens28174 = new Date(TargetDates28174); var dnows28174 = new Date("05/11/2025 5:40:00 PM"); if(CountSteppers28174>0) ddiffs28174 = new Date(dnows28174-dthens28174); else ddiffs28174 = new Date(dthens28174-dnows28174); gsecss28174 = Math.floor(ddiffs28174.valueOf()/1000); CountBacks28174(gsecss28174);