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 (LeadingZeros29596 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29596(secs) { if (secs < 0) { document.getElementById("cntdwns29596").innerHTML = FinishMessages29596; return; } DisplayStrs29596 = DisplayFormats29596.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29596 = DisplayStrs29596.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29596 = DisplayStrs29596.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29596 = DisplayStrs29596.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29596").innerHTML = DisplayStrs29596; if (CountActives29596) //alert(SetTimeOutPeriods29596); setTimeout("CountBacks29596(" + (secs+CountSteppers29596) + ")", SetTimeOutPeriods29596); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29596)=="undefined") BackColors29596 = ""; if (typeof(ForeColors29596)=="undefined") ForeColors29596= "white"; if (typeof(TargetDates29596)=="undefined") TargetDates29596 = "12/12/2023 9:00:00 PM"; if (typeof(DisplayFormats29596)=="undefined") DisplayFormats29596 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29596)=="undefined") CountActives29596 = true; if (typeof(FinishMessages29596)=="undefined") FinishMessages29596 = ""; if (typeof(CountSteppers29596)!="number") CountSteppers29596 = -1; if (typeof(LeadingZeros29596)=="undefined") LeadingZeros29596 = true; CountSteppers29596 = Math.ceil(CountSteppers29596); if (CountSteppers29596 == 0) CountActives29596 = false; var SetTimeOutPeriods29596 = (Math.abs(CountSteppers29596)-1)*1000 + 990; puti(BackColors29596, ForeColors29596); var dthens29596 = new Date(TargetDates29596); var dnows29596 = new Date("05/09/2025 10:11:22 AM"); if(CountSteppers29596>0) ddiffs29596 = new Date(dnows29596-dthens29596); else ddiffs29596 = new Date(dthens29596-dnows29596); gsecss29596 = Math.floor(ddiffs29596.valueOf()/1000); CountBacks29596(gsecss29596);