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 (LeadingZeros29423 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29423(secs) { if (secs < 0) { document.getElementById("cntdwns29423").innerHTML = FinishMessages29423; return; } DisplayStrs29423 = DisplayFormats29423.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29423 = DisplayStrs29423.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29423 = DisplayStrs29423.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29423 = DisplayStrs29423.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29423").innerHTML = DisplayStrs29423; if (CountActives29423) //alert(SetTimeOutPeriods29423); setTimeout("CountBacks29423(" + (secs+CountSteppers29423) + ")", SetTimeOutPeriods29423); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29423)=="undefined") BackColors29423 = ""; if (typeof(ForeColors29423)=="undefined") ForeColors29423= "white"; if (typeof(TargetDates29423)=="undefined") TargetDates29423 = "12/10/2023 10:00:00 PM"; if (typeof(DisplayFormats29423)=="undefined") DisplayFormats29423 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29423)=="undefined") CountActives29423 = true; if (typeof(FinishMessages29423)=="undefined") FinishMessages29423 = ""; if (typeof(CountSteppers29423)!="number") CountSteppers29423 = -1; if (typeof(LeadingZeros29423)=="undefined") LeadingZeros29423 = true; CountSteppers29423 = Math.ceil(CountSteppers29423); if (CountSteppers29423 == 0) CountActives29423 = false; var SetTimeOutPeriods29423 = (Math.abs(CountSteppers29423)-1)*1000 + 990; puti(BackColors29423, ForeColors29423); var dthens29423 = new Date(TargetDates29423); var dnows29423 = new Date("05/11/2025 10:54:58 AM"); if(CountSteppers29423>0) ddiffs29423 = new Date(dnows29423-dthens29423); else ddiffs29423 = new Date(dthens29423-dnows29423); gsecss29423 = Math.floor(ddiffs29423.valueOf()/1000); CountBacks29423(gsecss29423);