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 (LeadingZeros29138 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29138(secs) { if (secs < 0) { document.getElementById("cntdwns29138").innerHTML = FinishMessages29138; return; } DisplayStrs29138 = DisplayFormats29138.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29138 = DisplayStrs29138.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29138 = DisplayStrs29138.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29138 = DisplayStrs29138.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29138").innerHTML = DisplayStrs29138; if (CountActives29138) //alert(SetTimeOutPeriods29138); setTimeout("CountBacks29138(" + (secs+CountSteppers29138) + ")", SetTimeOutPeriods29138); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29138)=="undefined") BackColors29138 = ""; if (typeof(ForeColors29138)=="undefined") ForeColors29138= "white"; if (typeof(TargetDates29138)=="undefined") TargetDates29138 = "12/03/2023 9:00:00 PM"; if (typeof(DisplayFormats29138)=="undefined") DisplayFormats29138 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29138)=="undefined") CountActives29138 = true; if (typeof(FinishMessages29138)=="undefined") FinishMessages29138 = ""; if (typeof(CountSteppers29138)!="number") CountSteppers29138 = -1; if (typeof(LeadingZeros29138)=="undefined") LeadingZeros29138 = true; CountSteppers29138 = Math.ceil(CountSteppers29138); if (CountSteppers29138 == 0) CountActives29138 = false; var SetTimeOutPeriods29138 = (Math.abs(CountSteppers29138)-1)*1000 + 990; puti(BackColors29138, ForeColors29138); var dthens29138 = new Date(TargetDates29138); var dnows29138 = new Date("05/09/2025 6:40:48 AM"); if(CountSteppers29138>0) ddiffs29138 = new Date(dnows29138-dthens29138); else ddiffs29138 = new Date(dthens29138-dnows29138); gsecss29138 = Math.floor(ddiffs29138.valueOf()/1000); CountBacks29138(gsecss29138);