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 (LeadingZeros29019 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29019(secs) { if (secs < 0) { document.getElementById("cntdwns29019").innerHTML = FinishMessages29019; return; } DisplayStrs29019 = DisplayFormats29019.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29019 = DisplayStrs29019.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29019 = DisplayStrs29019.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29019 = DisplayStrs29019.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29019").innerHTML = DisplayStrs29019; if (CountActives29019) //alert(SetTimeOutPeriods29019); setTimeout("CountBacks29019(" + (secs+CountSteppers29019) + ")", SetTimeOutPeriods29019); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29019)=="undefined") BackColors29019 = ""; if (typeof(ForeColors29019)=="undefined") ForeColors29019= "white"; if (typeof(TargetDates29019)=="undefined") TargetDates29019 = "10/05/2023 10:00:00 PM"; if (typeof(DisplayFormats29019)=="undefined") DisplayFormats29019 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29019)=="undefined") CountActives29019 = true; if (typeof(FinishMessages29019)=="undefined") FinishMessages29019 = ""; if (typeof(CountSteppers29019)!="number") CountSteppers29019 = -1; if (typeof(LeadingZeros29019)=="undefined") LeadingZeros29019 = true; CountSteppers29019 = Math.ceil(CountSteppers29019); if (CountSteppers29019 == 0) CountActives29019 = false; var SetTimeOutPeriods29019 = (Math.abs(CountSteppers29019)-1)*1000 + 990; puti(BackColors29019, ForeColors29019); var dthens29019 = new Date(TargetDates29019); var dnows29019 = new Date("05/09/2025 10:08:42 AM"); if(CountSteppers29019>0) ddiffs29019 = new Date(dnows29019-dthens29019); else ddiffs29019 = new Date(dthens29019-dnows29019); gsecss29019 = Math.floor(ddiffs29019.valueOf()/1000); CountBacks29019(gsecss29019);