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 (LeadingZeros29434 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29434(secs) { if (secs < 0) { document.getElementById("cntdwns29434").innerHTML = FinishMessages29434; return; } DisplayStrs29434 = DisplayFormats29434.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29434 = DisplayStrs29434.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29434 = DisplayStrs29434.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29434 = DisplayStrs29434.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29434").innerHTML = DisplayStrs29434; if (CountActives29434) //alert(SetTimeOutPeriods29434); setTimeout("CountBacks29434(" + (secs+CountSteppers29434) + ")", SetTimeOutPeriods29434); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29434)=="undefined") BackColors29434 = ""; if (typeof(ForeColors29434)=="undefined") ForeColors29434= "white"; if (typeof(TargetDates29434)=="undefined") TargetDates29434 = "12/03/2023 10:00:00 PM"; if (typeof(DisplayFormats29434)=="undefined") DisplayFormats29434 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29434)=="undefined") CountActives29434 = true; if (typeof(FinishMessages29434)=="undefined") FinishMessages29434 = ""; if (typeof(CountSteppers29434)!="number") CountSteppers29434 = -1; if (typeof(LeadingZeros29434)=="undefined") LeadingZeros29434 = true; CountSteppers29434 = Math.ceil(CountSteppers29434); if (CountSteppers29434 == 0) CountActives29434 = false; var SetTimeOutPeriods29434 = (Math.abs(CountSteppers29434)-1)*1000 + 990; puti(BackColors29434, ForeColors29434); var dthens29434 = new Date(TargetDates29434); var dnows29434 = new Date("05/09/2025 6:39:01 AM"); if(CountSteppers29434>0) ddiffs29434 = new Date(dnows29434-dthens29434); else ddiffs29434 = new Date(dthens29434-dnows29434); gsecss29434 = Math.floor(ddiffs29434.valueOf()/1000); CountBacks29434(gsecss29434);