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 (LeadingZeros29504 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29504(secs) { if (secs < 0) { document.getElementById("cntdwns29504").innerHTML = FinishMessages29504; return; } DisplayStrs29504 = DisplayFormats29504.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29504 = DisplayStrs29504.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29504 = DisplayStrs29504.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29504 = DisplayStrs29504.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29504").innerHTML = DisplayStrs29504; if (CountActives29504) //alert(SetTimeOutPeriods29504); setTimeout("CountBacks29504(" + (secs+CountSteppers29504) + ")", SetTimeOutPeriods29504); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29504)=="undefined") BackColors29504 = ""; if (typeof(ForeColors29504)=="undefined") ForeColors29504= "white"; if (typeof(TargetDates29504)=="undefined") TargetDates29504 = "12/10/2023 10:00:00 PM"; if (typeof(DisplayFormats29504)=="undefined") DisplayFormats29504 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29504)=="undefined") CountActives29504 = true; if (typeof(FinishMessages29504)=="undefined") FinishMessages29504 = ""; if (typeof(CountSteppers29504)!="number") CountSteppers29504 = -1; if (typeof(LeadingZeros29504)=="undefined") LeadingZeros29504 = true; CountSteppers29504 = Math.ceil(CountSteppers29504); if (CountSteppers29504 == 0) CountActives29504 = false; var SetTimeOutPeriods29504 = (Math.abs(CountSteppers29504)-1)*1000 + 990; puti(BackColors29504, ForeColors29504); var dthens29504 = new Date(TargetDates29504); var dnows29504 = new Date("05/09/2025 10:06:58 AM"); if(CountSteppers29504>0) ddiffs29504 = new Date(dnows29504-dthens29504); else ddiffs29504 = new Date(dthens29504-dnows29504); gsecss29504 = Math.floor(ddiffs29504.valueOf()/1000); CountBacks29504(gsecss29504);