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 (LeadingZeros29058 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29058(secs) { if (secs < 0) { document.getElementById("cntdwns29058").innerHTML = FinishMessages29058; return; } DisplayStrs29058 = DisplayFormats29058.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29058 = DisplayStrs29058.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29058 = DisplayStrs29058.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29058 = DisplayStrs29058.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29058").innerHTML = DisplayStrs29058; if (CountActives29058) //alert(SetTimeOutPeriods29058); setTimeout("CountBacks29058(" + (secs+CountSteppers29058) + ")", SetTimeOutPeriods29058); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29058)=="undefined") BackColors29058 = ""; if (typeof(ForeColors29058)=="undefined") ForeColors29058= "white"; if (typeof(TargetDates29058)=="undefined") TargetDates29058 = "12/03/2023 8:00:00 PM"; if (typeof(DisplayFormats29058)=="undefined") DisplayFormats29058 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29058)=="undefined") CountActives29058 = true; if (typeof(FinishMessages29058)=="undefined") FinishMessages29058 = ""; if (typeof(CountSteppers29058)!="number") CountSteppers29058 = -1; if (typeof(LeadingZeros29058)=="undefined") LeadingZeros29058 = true; CountSteppers29058 = Math.ceil(CountSteppers29058); if (CountSteppers29058 == 0) CountActives29058 = false; var SetTimeOutPeriods29058 = (Math.abs(CountSteppers29058)-1)*1000 + 990; puti(BackColors29058, ForeColors29058); var dthens29058 = new Date(TargetDates29058); var dnows29058 = new Date("05/09/2025 10:10:29 AM"); if(CountSteppers29058>0) ddiffs29058 = new Date(dnows29058-dthens29058); else ddiffs29058 = new Date(dthens29058-dnows29058); gsecss29058 = Math.floor(ddiffs29058.valueOf()/1000); CountBacks29058(gsecss29058);