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 (LeadingZeros29229 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29229(secs) { if (secs < 0) { document.getElementById("cntdwns29229").innerHTML = FinishMessages29229; return; } DisplayStrs29229 = DisplayFormats29229.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29229 = DisplayStrs29229.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29229 = DisplayStrs29229.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29229 = DisplayStrs29229.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29229").innerHTML = DisplayStrs29229; if (CountActives29229) //alert(SetTimeOutPeriods29229); setTimeout("CountBacks29229(" + (secs+CountSteppers29229) + ")", SetTimeOutPeriods29229); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29229)=="undefined") BackColors29229 = ""; if (typeof(ForeColors29229)=="undefined") ForeColors29229= "white"; if (typeof(TargetDates29229)=="undefined") TargetDates29229 = "12/11/2023 9:00:00 PM"; if (typeof(DisplayFormats29229)=="undefined") DisplayFormats29229 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29229)=="undefined") CountActives29229 = true; if (typeof(FinishMessages29229)=="undefined") FinishMessages29229 = ""; if (typeof(CountSteppers29229)!="number") CountSteppers29229 = -1; if (typeof(LeadingZeros29229)=="undefined") LeadingZeros29229 = true; CountSteppers29229 = Math.ceil(CountSteppers29229); if (CountSteppers29229 == 0) CountActives29229 = false; var SetTimeOutPeriods29229 = (Math.abs(CountSteppers29229)-1)*1000 + 990; puti(BackColors29229, ForeColors29229); var dthens29229 = new Date(TargetDates29229); var dnows29229 = new Date("05/10/2025 7:59:47 AM"); if(CountSteppers29229>0) ddiffs29229 = new Date(dnows29229-dthens29229); else ddiffs29229 = new Date(dthens29229-dnows29229); gsecss29229 = Math.floor(ddiffs29229.valueOf()/1000); CountBacks29229(gsecss29229);