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 (LeadingZeros29448 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29448(secs) { if (secs < 0) { document.getElementById("cntdwns29448").innerHTML = FinishMessages29448; return; } DisplayStrs29448 = DisplayFormats29448.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29448 = DisplayStrs29448.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29448 = DisplayStrs29448.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29448 = DisplayStrs29448.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29448").innerHTML = DisplayStrs29448; if (CountActives29448) //alert(SetTimeOutPeriods29448); setTimeout("CountBacks29448(" + (secs+CountSteppers29448) + ")", SetTimeOutPeriods29448); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29448)=="undefined") BackColors29448 = ""; if (typeof(ForeColors29448)=="undefined") ForeColors29448= "white"; if (typeof(TargetDates29448)=="undefined") TargetDates29448 = "12/09/2023 10:00:00 PM"; if (typeof(DisplayFormats29448)=="undefined") DisplayFormats29448 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29448)=="undefined") CountActives29448 = true; if (typeof(FinishMessages29448)=="undefined") FinishMessages29448 = ""; if (typeof(CountSteppers29448)!="number") CountSteppers29448 = -1; if (typeof(LeadingZeros29448)=="undefined") LeadingZeros29448 = true; CountSteppers29448 = Math.ceil(CountSteppers29448); if (CountSteppers29448 == 0) CountActives29448 = false; var SetTimeOutPeriods29448 = (Math.abs(CountSteppers29448)-1)*1000 + 990; puti(BackColors29448, ForeColors29448); var dthens29448 = new Date(TargetDates29448); var dnows29448 = new Date("05/11/2025 9:03:19 PM"); if(CountSteppers29448>0) ddiffs29448 = new Date(dnows29448-dthens29448); else ddiffs29448 = new Date(dthens29448-dnows29448); gsecss29448 = Math.floor(ddiffs29448.valueOf()/1000); CountBacks29448(gsecss29448);