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 (LeadingZeros29129 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29129(secs) { if (secs < 0) { document.getElementById("cntdwns29129").innerHTML = FinishMessages29129; return; } DisplayStrs29129 = DisplayFormats29129.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29129 = DisplayStrs29129.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29129 = DisplayStrs29129.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29129 = DisplayStrs29129.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29129").innerHTML = DisplayStrs29129; if (CountActives29129) //alert(SetTimeOutPeriods29129); setTimeout("CountBacks29129(" + (secs+CountSteppers29129) + ")", SetTimeOutPeriods29129); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29129)=="undefined") BackColors29129 = ""; if (typeof(ForeColors29129)=="undefined") ForeColors29129= "white"; if (typeof(TargetDates29129)=="undefined") TargetDates29129 = "10/04/2023 10:00:00 PM"; if (typeof(DisplayFormats29129)=="undefined") DisplayFormats29129 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29129)=="undefined") CountActives29129 = true; if (typeof(FinishMessages29129)=="undefined") FinishMessages29129 = ""; if (typeof(CountSteppers29129)!="number") CountSteppers29129 = -1; if (typeof(LeadingZeros29129)=="undefined") LeadingZeros29129 = true; CountSteppers29129 = Math.ceil(CountSteppers29129); if (CountSteppers29129 == 0) CountActives29129 = false; var SetTimeOutPeriods29129 = (Math.abs(CountSteppers29129)-1)*1000 + 990; puti(BackColors29129, ForeColors29129); var dthens29129 = new Date(TargetDates29129); var dnows29129 = new Date("05/09/2025 10:08:42 AM"); if(CountSteppers29129>0) ddiffs29129 = new Date(dnows29129-dthens29129); else ddiffs29129 = new Date(dthens29129-dnows29129); gsecss29129 = Math.floor(ddiffs29129.valueOf()/1000); CountBacks29129(gsecss29129);