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 (LeadingZeros29449 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29449(secs) { if (secs < 0) { document.getElementById("cntdwns29449").innerHTML = FinishMessages29449; return; } DisplayStrs29449 = DisplayFormats29449.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29449 = DisplayStrs29449.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29449 = DisplayStrs29449.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29449 = DisplayStrs29449.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29449").innerHTML = DisplayStrs29449; if (CountActives29449) //alert(SetTimeOutPeriods29449); setTimeout("CountBacks29449(" + (secs+CountSteppers29449) + ")", SetTimeOutPeriods29449); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29449)=="undefined") BackColors29449 = ""; if (typeof(ForeColors29449)=="undefined") ForeColors29449= "white"; if (typeof(TargetDates29449)=="undefined") TargetDates29449 = "12/10/2023 10:00:00 PM"; if (typeof(DisplayFormats29449)=="undefined") DisplayFormats29449 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29449)=="undefined") CountActives29449 = true; if (typeof(FinishMessages29449)=="undefined") FinishMessages29449 = ""; if (typeof(CountSteppers29449)!="number") CountSteppers29449 = -1; if (typeof(LeadingZeros29449)=="undefined") LeadingZeros29449 = true; CountSteppers29449 = Math.ceil(CountSteppers29449); if (CountSteppers29449 == 0) CountActives29449 = false; var SetTimeOutPeriods29449 = (Math.abs(CountSteppers29449)-1)*1000 + 990; puti(BackColors29449, ForeColors29449); var dthens29449 = new Date(TargetDates29449); var dnows29449 = new Date("05/11/2025 9:00:36 PM"); if(CountSteppers29449>0) ddiffs29449 = new Date(dnows29449-dthens29449); else ddiffs29449 = new Date(dthens29449-dnows29449); gsecss29449 = Math.floor(ddiffs29449.valueOf()/1000); CountBacks29449(gsecss29449);