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 (LeadingZeros29024 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29024(secs) { if (secs < 0) { document.getElementById("cntdwns29024").innerHTML = FinishMessages29024; return; } DisplayStrs29024 = DisplayFormats29024.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29024 = DisplayStrs29024.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29024 = DisplayStrs29024.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29024 = DisplayStrs29024.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29024").innerHTML = DisplayStrs29024; if (CountActives29024) //alert(SetTimeOutPeriods29024); setTimeout("CountBacks29024(" + (secs+CountSteppers29024) + ")", SetTimeOutPeriods29024); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29024)=="undefined") BackColors29024 = ""; if (typeof(ForeColors29024)=="undefined") ForeColors29024= "white"; if (typeof(TargetDates29024)=="undefined") TargetDates29024 = "09/25/2023 10:00:00 PM"; if (typeof(DisplayFormats29024)=="undefined") DisplayFormats29024 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29024)=="undefined") CountActives29024 = true; if (typeof(FinishMessages29024)=="undefined") FinishMessages29024 = ""; if (typeof(CountSteppers29024)!="number") CountSteppers29024 = -1; if (typeof(LeadingZeros29024)=="undefined") LeadingZeros29024 = true; CountSteppers29024 = Math.ceil(CountSteppers29024); if (CountSteppers29024 == 0) CountActives29024 = false; var SetTimeOutPeriods29024 = (Math.abs(CountSteppers29024)-1)*1000 + 990; puti(BackColors29024, ForeColors29024); var dthens29024 = new Date(TargetDates29024); var dnows29024 = new Date("05/09/2025 10:06:57 AM"); if(CountSteppers29024>0) ddiffs29024 = new Date(dnows29024-dthens29024); else ddiffs29024 = new Date(dthens29024-dnows29024); gsecss29024 = Math.floor(ddiffs29024.valueOf()/1000); CountBacks29024(gsecss29024);