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 (LeadingZeros29447 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29447(secs) { if (secs < 0) { document.getElementById("cntdwns29447").innerHTML = FinishMessages29447; return; } DisplayStrs29447 = DisplayFormats29447.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29447 = DisplayStrs29447.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29447 = DisplayStrs29447.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29447 = DisplayStrs29447.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29447").innerHTML = DisplayStrs29447; if (CountActives29447) //alert(SetTimeOutPeriods29447); setTimeout("CountBacks29447(" + (secs+CountSteppers29447) + ")", SetTimeOutPeriods29447); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29447)=="undefined") BackColors29447 = ""; if (typeof(ForeColors29447)=="undefined") ForeColors29447= "white"; if (typeof(TargetDates29447)=="undefined") TargetDates29447 = "12/09/2023 10:00:00 PM"; if (typeof(DisplayFormats29447)=="undefined") DisplayFormats29447 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29447)=="undefined") CountActives29447 = true; if (typeof(FinishMessages29447)=="undefined") FinishMessages29447 = ""; if (typeof(CountSteppers29447)!="number") CountSteppers29447 = -1; if (typeof(LeadingZeros29447)=="undefined") LeadingZeros29447 = true; CountSteppers29447 = Math.ceil(CountSteppers29447); if (CountSteppers29447 == 0) CountActives29447 = false; var SetTimeOutPeriods29447 = (Math.abs(CountSteppers29447)-1)*1000 + 990; puti(BackColors29447, ForeColors29447); var dthens29447 = new Date(TargetDates29447); var dnows29447 = new Date("05/11/2025 9:04:34 PM"); if(CountSteppers29447>0) ddiffs29447 = new Date(dnows29447-dthens29447); else ddiffs29447 = new Date(dthens29447-dnows29447); gsecss29447 = Math.floor(ddiffs29447.valueOf()/1000); CountBacks29447(gsecss29447);