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 (LeadingZeros29593 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29593(secs) { if (secs < 0) { document.getElementById("cntdwns29593").innerHTML = FinishMessages29593; return; } DisplayStrs29593 = DisplayFormats29593.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29593 = DisplayStrs29593.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29593 = DisplayStrs29593.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29593 = DisplayStrs29593.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29593").innerHTML = DisplayStrs29593; if (CountActives29593) //alert(SetTimeOutPeriods29593); setTimeout("CountBacks29593(" + (secs+CountSteppers29593) + ")", SetTimeOutPeriods29593); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29593)=="undefined") BackColors29593 = ""; if (typeof(ForeColors29593)=="undefined") ForeColors29593= "white"; if (typeof(TargetDates29593)=="undefined") TargetDates29593 = "12/11/2023 10:00:00 PM"; if (typeof(DisplayFormats29593)=="undefined") DisplayFormats29593 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29593)=="undefined") CountActives29593 = true; if (typeof(FinishMessages29593)=="undefined") FinishMessages29593 = ""; if (typeof(CountSteppers29593)!="number") CountSteppers29593 = -1; if (typeof(LeadingZeros29593)=="undefined") LeadingZeros29593 = true; CountSteppers29593 = Math.ceil(CountSteppers29593); if (CountSteppers29593 == 0) CountActives29593 = false; var SetTimeOutPeriods29593 = (Math.abs(CountSteppers29593)-1)*1000 + 990; puti(BackColors29593, ForeColors29593); var dthens29593 = new Date(TargetDates29593); var dnows29593 = new Date("05/09/2025 10:10:29 AM"); if(CountSteppers29593>0) ddiffs29593 = new Date(dnows29593-dthens29593); else ddiffs29593 = new Date(dthens29593-dnows29593); gsecss29593 = Math.floor(ddiffs29593.valueOf()/1000); CountBacks29593(gsecss29593);