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 (LeadingZeros29044 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29044(secs) { if (secs < 0) { document.getElementById("cntdwns29044").innerHTML = FinishMessages29044; return; } DisplayStrs29044 = DisplayFormats29044.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29044 = DisplayStrs29044.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29044 = DisplayStrs29044.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29044 = DisplayStrs29044.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29044").innerHTML = DisplayStrs29044; if (CountActives29044) //alert(SetTimeOutPeriods29044); setTimeout("CountBacks29044(" + (secs+CountSteppers29044) + ")", SetTimeOutPeriods29044); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29044)=="undefined") BackColors29044 = ""; if (typeof(ForeColors29044)=="undefined") ForeColors29044= "white"; if (typeof(TargetDates29044)=="undefined") TargetDates29044 = "10/02/2023 10:00:00 PM"; if (typeof(DisplayFormats29044)=="undefined") DisplayFormats29044 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29044)=="undefined") CountActives29044 = true; if (typeof(FinishMessages29044)=="undefined") FinishMessages29044 = ""; if (typeof(CountSteppers29044)!="number") CountSteppers29044 = -1; if (typeof(LeadingZeros29044)=="undefined") LeadingZeros29044 = true; CountSteppers29044 = Math.ceil(CountSteppers29044); if (CountSteppers29044 == 0) CountActives29044 = false; var SetTimeOutPeriods29044 = (Math.abs(CountSteppers29044)-1)*1000 + 990; puti(BackColors29044, ForeColors29044); var dthens29044 = new Date(TargetDates29044); var dnows29044 = new Date("05/09/2025 12:54:03 PM"); if(CountSteppers29044>0) ddiffs29044 = new Date(dnows29044-dthens29044); else ddiffs29044 = new Date(dthens29044-dnows29044); gsecss29044 = Math.floor(ddiffs29044.valueOf()/1000); CountBacks29044(gsecss29044);