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 (LeadingZeros29508 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29508(secs) { if (secs < 0) { document.getElementById("cntdwns29508").innerHTML = FinishMessages29508; return; } DisplayStrs29508 = DisplayFormats29508.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29508 = DisplayStrs29508.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29508 = DisplayStrs29508.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29508 = DisplayStrs29508.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29508").innerHTML = DisplayStrs29508; if (CountActives29508) //alert(SetTimeOutPeriods29508); setTimeout("CountBacks29508(" + (secs+CountSteppers29508) + ")", SetTimeOutPeriods29508); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29508)=="undefined") BackColors29508 = ""; if (typeof(ForeColors29508)=="undefined") ForeColors29508= "white"; if (typeof(TargetDates29508)=="undefined") TargetDates29508 = "12/03/2023 10:00:00 PM"; if (typeof(DisplayFormats29508)=="undefined") DisplayFormats29508 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29508)=="undefined") CountActives29508 = true; if (typeof(FinishMessages29508)=="undefined") FinishMessages29508 = ""; if (typeof(CountSteppers29508)!="number") CountSteppers29508 = -1; if (typeof(LeadingZeros29508)=="undefined") LeadingZeros29508 = true; CountSteppers29508 = Math.ceil(CountSteppers29508); if (CountSteppers29508 == 0) CountActives29508 = false; var SetTimeOutPeriods29508 = (Math.abs(CountSteppers29508)-1)*1000 + 990; puti(BackColors29508, ForeColors29508); var dthens29508 = new Date(TargetDates29508); var dnows29508 = new Date("05/11/2025 2:14:16 PM"); if(CountSteppers29508>0) ddiffs29508 = new Date(dnows29508-dthens29508); else ddiffs29508 = new Date(dthens29508-dnows29508); gsecss29508 = Math.floor(ddiffs29508.valueOf()/1000); CountBacks29508(gsecss29508);