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 (LeadingZeros29236 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29236(secs) { if (secs < 0) { document.getElementById("cntdwns29236").innerHTML = FinishMessages29236; return; } DisplayStrs29236 = DisplayFormats29236.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29236 = DisplayStrs29236.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29236 = DisplayStrs29236.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29236 = DisplayStrs29236.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29236").innerHTML = DisplayStrs29236; if (CountActives29236) //alert(SetTimeOutPeriods29236); setTimeout("CountBacks29236(" + (secs+CountSteppers29236) + ")", SetTimeOutPeriods29236); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29236)=="undefined") BackColors29236 = ""; if (typeof(ForeColors29236)=="undefined") ForeColors29236= "white"; if (typeof(TargetDates29236)=="undefined") TargetDates29236 = "10/03/2023 10:00:00 PM"; if (typeof(DisplayFormats29236)=="undefined") DisplayFormats29236 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29236)=="undefined") CountActives29236 = true; if (typeof(FinishMessages29236)=="undefined") FinishMessages29236 = ""; if (typeof(CountSteppers29236)!="number") CountSteppers29236 = -1; if (typeof(LeadingZeros29236)=="undefined") LeadingZeros29236 = true; CountSteppers29236 = Math.ceil(CountSteppers29236); if (CountSteppers29236 == 0) CountActives29236 = false; var SetTimeOutPeriods29236 = (Math.abs(CountSteppers29236)-1)*1000 + 990; puti(BackColors29236, ForeColors29236); var dthens29236 = new Date(TargetDates29236); var dnows29236 = new Date("05/11/2025 9:01:59 PM"); if(CountSteppers29236>0) ddiffs29236 = new Date(dnows29236-dthens29236); else ddiffs29236 = new Date(dthens29236-dnows29236); gsecss29236 = Math.floor(ddiffs29236.valueOf()/1000); CountBacks29236(gsecss29236);