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 (LeadingZeros29376 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29376(secs) { if (secs < 0) { document.getElementById("cntdwns29376").innerHTML = FinishMessages29376; return; } DisplayStrs29376 = DisplayFormats29376.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29376 = DisplayStrs29376.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29376 = DisplayStrs29376.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29376 = DisplayStrs29376.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29376").innerHTML = DisplayStrs29376; if (CountActives29376) //alert(SetTimeOutPeriods29376); setTimeout("CountBacks29376(" + (secs+CountSteppers29376) + ")", SetTimeOutPeriods29376); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29376)=="undefined") BackColors29376 = ""; if (typeof(ForeColors29376)=="undefined") ForeColors29376= "white"; if (typeof(TargetDates29376)=="undefined") TargetDates29376 = "12/09/2023 9:00:00 PM"; if (typeof(DisplayFormats29376)=="undefined") DisplayFormats29376 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29376)=="undefined") CountActives29376 = true; if (typeof(FinishMessages29376)=="undefined") FinishMessages29376 = ""; if (typeof(CountSteppers29376)!="number") CountSteppers29376 = -1; if (typeof(LeadingZeros29376)=="undefined") LeadingZeros29376 = true; CountSteppers29376 = Math.ceil(CountSteppers29376); if (CountSteppers29376 == 0) CountActives29376 = false; var SetTimeOutPeriods29376 = (Math.abs(CountSteppers29376)-1)*1000 + 990; puti(BackColors29376, ForeColors29376); var dthens29376 = new Date(TargetDates29376); var dnows29376 = new Date("05/11/2025 10:54:58 AM"); if(CountSteppers29376>0) ddiffs29376 = new Date(dnows29376-dthens29376); else ddiffs29376 = new Date(dthens29376-dnows29376); gsecss29376 = Math.floor(ddiffs29376.valueOf()/1000); CountBacks29376(gsecss29376);