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 (LeadingZeros29029 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29029(secs) { if (secs < 0) { document.getElementById("cntdwns29029").innerHTML = FinishMessages29029; return; } DisplayStrs29029 = DisplayFormats29029.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29029 = DisplayStrs29029.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29029 = DisplayStrs29029.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29029 = DisplayStrs29029.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29029").innerHTML = DisplayStrs29029; if (CountActives29029) //alert(SetTimeOutPeriods29029); setTimeout("CountBacks29029(" + (secs+CountSteppers29029) + ")", SetTimeOutPeriods29029); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29029)=="undefined") BackColors29029 = ""; if (typeof(ForeColors29029)=="undefined") ForeColors29029= "white"; if (typeof(TargetDates29029)=="undefined") TargetDates29029 = "10/03/2023 10:00:00 PM"; if (typeof(DisplayFormats29029)=="undefined") DisplayFormats29029 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29029)=="undefined") CountActives29029 = true; if (typeof(FinishMessages29029)=="undefined") FinishMessages29029 = ""; if (typeof(CountSteppers29029)!="number") CountSteppers29029 = -1; if (typeof(LeadingZeros29029)=="undefined") LeadingZeros29029 = true; CountSteppers29029 = Math.ceil(CountSteppers29029); if (CountSteppers29029 == 0) CountActives29029 = false; var SetTimeOutPeriods29029 = (Math.abs(CountSteppers29029)-1)*1000 + 990; puti(BackColors29029, ForeColors29029); var dthens29029 = new Date(TargetDates29029); var dnows29029 = new Date("05/09/2025 10:07:50 AM"); if(CountSteppers29029>0) ddiffs29029 = new Date(dnows29029-dthens29029); else ddiffs29029 = new Date(dthens29029-dnows29029); gsecss29029 = Math.floor(ddiffs29029.valueOf()/1000); CountBacks29029(gsecss29029);