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 (LeadingZeros29499 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29499(secs) { if (secs < 0) { document.getElementById("cntdwns29499").innerHTML = FinishMessages29499; return; } DisplayStrs29499 = DisplayFormats29499.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29499 = DisplayStrs29499.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29499 = DisplayStrs29499.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29499 = DisplayStrs29499.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29499").innerHTML = DisplayStrs29499; if (CountActives29499) //alert(SetTimeOutPeriods29499); setTimeout("CountBacks29499(" + (secs+CountSteppers29499) + ")", SetTimeOutPeriods29499); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29499)=="undefined") BackColors29499 = ""; if (typeof(ForeColors29499)=="undefined") ForeColors29499= "white"; if (typeof(TargetDates29499)=="undefined") TargetDates29499 = "12/12/2023 10:00:00 PM"; if (typeof(DisplayFormats29499)=="undefined") DisplayFormats29499 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29499)=="undefined") CountActives29499 = true; if (typeof(FinishMessages29499)=="undefined") FinishMessages29499 = ""; if (typeof(CountSteppers29499)!="number") CountSteppers29499 = -1; if (typeof(LeadingZeros29499)=="undefined") LeadingZeros29499 = true; CountSteppers29499 = Math.ceil(CountSteppers29499); if (CountSteppers29499 == 0) CountActives29499 = false; var SetTimeOutPeriods29499 = (Math.abs(CountSteppers29499)-1)*1000 + 990; puti(BackColors29499, ForeColors29499); var dthens29499 = new Date(TargetDates29499); var dnows29499 = new Date("05/11/2025 2:15:21 PM"); if(CountSteppers29499>0) ddiffs29499 = new Date(dnows29499-dthens29499); else ddiffs29499 = new Date(dthens29499-dnows29499); gsecss29499 = Math.floor(ddiffs29499.valueOf()/1000); CountBacks29499(gsecss29499);