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 (LeadingZeros29099 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29099(secs) { if (secs < 0) { document.getElementById("cntdwns29099").innerHTML = FinishMessages29099; return; } DisplayStrs29099 = DisplayFormats29099.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29099 = DisplayStrs29099.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29099 = DisplayStrs29099.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29099 = DisplayStrs29099.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29099").innerHTML = DisplayStrs29099; if (CountActives29099) //alert(SetTimeOutPeriods29099); setTimeout("CountBacks29099(" + (secs+CountSteppers29099) + ")", SetTimeOutPeriods29099); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29099)=="undefined") BackColors29099 = ""; if (typeof(ForeColors29099)=="undefined") ForeColors29099= "white"; if (typeof(TargetDates29099)=="undefined") TargetDates29099 = "09/25/2023 10:00:00 PM"; if (typeof(DisplayFormats29099)=="undefined") DisplayFormats29099 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29099)=="undefined") CountActives29099 = true; if (typeof(FinishMessages29099)=="undefined") FinishMessages29099 = ""; if (typeof(CountSteppers29099)!="number") CountSteppers29099 = -1; if (typeof(LeadingZeros29099)=="undefined") LeadingZeros29099 = true; CountSteppers29099 = Math.ceil(CountSteppers29099); if (CountSteppers29099 == 0) CountActives29099 = false; var SetTimeOutPeriods29099 = (Math.abs(CountSteppers29099)-1)*1000 + 990; puti(BackColors29099, ForeColors29099); var dthens29099 = new Date(TargetDates29099); var dnows29099 = new Date("05/09/2025 10:06:57 AM"); if(CountSteppers29099>0) ddiffs29099 = new Date(dnows29099-dthens29099); else ddiffs29099 = new Date(dthens29099-dnows29099); gsecss29099 = Math.floor(ddiffs29099.valueOf()/1000); CountBacks29099(gsecss29099);