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 (LeadingZeros29131 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29131(secs) { if (secs < 0) { document.getElementById("cntdwns29131").innerHTML = FinishMessages29131; return; } DisplayStrs29131 = DisplayFormats29131.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29131 = DisplayStrs29131.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29131 = DisplayStrs29131.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29131 = DisplayStrs29131.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29131").innerHTML = DisplayStrs29131; if (CountActives29131) //alert(SetTimeOutPeriods29131); setTimeout("CountBacks29131(" + (secs+CountSteppers29131) + ")", SetTimeOutPeriods29131); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29131)=="undefined") BackColors29131 = ""; if (typeof(ForeColors29131)=="undefined") ForeColors29131= "white"; if (typeof(TargetDates29131)=="undefined") TargetDates29131 = "09/25/2023 10:00:00 PM"; if (typeof(DisplayFormats29131)=="undefined") DisplayFormats29131 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29131)=="undefined") CountActives29131 = true; if (typeof(FinishMessages29131)=="undefined") FinishMessages29131 = ""; if (typeof(CountSteppers29131)!="number") CountSteppers29131 = -1; if (typeof(LeadingZeros29131)=="undefined") LeadingZeros29131 = true; CountSteppers29131 = Math.ceil(CountSteppers29131); if (CountSteppers29131 == 0) CountActives29131 = false; var SetTimeOutPeriods29131 = (Math.abs(CountSteppers29131)-1)*1000 + 990; puti(BackColors29131, ForeColors29131); var dthens29131 = new Date(TargetDates29131); var dnows29131 = new Date("05/11/2025 7:45:27 AM"); if(CountSteppers29131>0) ddiffs29131 = new Date(dnows29131-dthens29131); else ddiffs29131 = new Date(dthens29131-dnows29131); gsecss29131 = Math.floor(ddiffs29131.valueOf()/1000); CountBacks29131(gsecss29131);