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 (LeadingZeros29036 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29036(secs) { if (secs < 0) { document.getElementById("cntdwns29036").innerHTML = FinishMessages29036; return; } DisplayStrs29036 = DisplayFormats29036.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29036 = DisplayStrs29036.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29036 = DisplayStrs29036.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29036 = DisplayStrs29036.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29036").innerHTML = DisplayStrs29036; if (CountActives29036) //alert(SetTimeOutPeriods29036); setTimeout("CountBacks29036(" + (secs+CountSteppers29036) + ")", SetTimeOutPeriods29036); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29036)=="undefined") BackColors29036 = ""; if (typeof(ForeColors29036)=="undefined") ForeColors29036= "white"; if (typeof(TargetDates29036)=="undefined") TargetDates29036 = "09/26/2023 10:00:00 PM"; if (typeof(DisplayFormats29036)=="undefined") DisplayFormats29036 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29036)=="undefined") CountActives29036 = true; if (typeof(FinishMessages29036)=="undefined") FinishMessages29036 = ""; if (typeof(CountSteppers29036)!="number") CountSteppers29036 = -1; if (typeof(LeadingZeros29036)=="undefined") LeadingZeros29036 = true; CountSteppers29036 = Math.ceil(CountSteppers29036); if (CountSteppers29036 == 0) CountActives29036 = false; var SetTimeOutPeriods29036 = (Math.abs(CountSteppers29036)-1)*1000 + 990; puti(BackColors29036, ForeColors29036); var dthens29036 = new Date(TargetDates29036); var dnows29036 = new Date("05/11/2025 2:13:14 PM"); if(CountSteppers29036>0) ddiffs29036 = new Date(dnows29036-dthens29036); else ddiffs29036 = new Date(dthens29036-dnows29036); gsecss29036 = Math.floor(ddiffs29036.valueOf()/1000); CountBacks29036(gsecss29036);