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 (LeadingZeros29140 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29140(secs) { if (secs < 0) { document.getElementById("cntdwns29140").innerHTML = FinishMessages29140; return; } DisplayStrs29140 = DisplayFormats29140.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29140 = DisplayStrs29140.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29140 = DisplayStrs29140.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29140 = DisplayStrs29140.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29140").innerHTML = DisplayStrs29140; if (CountActives29140) //alert(SetTimeOutPeriods29140); setTimeout("CountBacks29140(" + (secs+CountSteppers29140) + ")", SetTimeOutPeriods29140); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29140)=="undefined") BackColors29140 = ""; if (typeof(ForeColors29140)=="undefined") ForeColors29140= "white"; if (typeof(TargetDates29140)=="undefined") TargetDates29140 = "09/28/2023 10:00:00 PM"; if (typeof(DisplayFormats29140)=="undefined") DisplayFormats29140 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29140)=="undefined") CountActives29140 = true; if (typeof(FinishMessages29140)=="undefined") FinishMessages29140 = ""; if (typeof(CountSteppers29140)!="number") CountSteppers29140 = -1; if (typeof(LeadingZeros29140)=="undefined") LeadingZeros29140 = true; CountSteppers29140 = Math.ceil(CountSteppers29140); if (CountSteppers29140 == 0) CountActives29140 = false; var SetTimeOutPeriods29140 = (Math.abs(CountSteppers29140)-1)*1000 + 990; puti(BackColors29140, ForeColors29140); var dthens29140 = new Date(TargetDates29140); var dnows29140 = new Date("05/09/2025 12:55:00 PM"); if(CountSteppers29140>0) ddiffs29140 = new Date(dnows29140-dthens29140); else ddiffs29140 = new Date(dthens29140-dnows29140); gsecss29140 = Math.floor(ddiffs29140.valueOf()/1000); CountBacks29140(gsecss29140);