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 (LeadingZeros29506 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29506(secs) { if (secs < 0) { document.getElementById("cntdwns29506").innerHTML = FinishMessages29506; return; } DisplayStrs29506 = DisplayFormats29506.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29506 = DisplayStrs29506.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29506 = DisplayStrs29506.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29506 = DisplayStrs29506.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29506").innerHTML = DisplayStrs29506; if (CountActives29506) //alert(SetTimeOutPeriods29506); setTimeout("CountBacks29506(" + (secs+CountSteppers29506) + ")", SetTimeOutPeriods29506); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29506)=="undefined") BackColors29506 = ""; if (typeof(ForeColors29506)=="undefined") ForeColors29506= "white"; if (typeof(TargetDates29506)=="undefined") TargetDates29506 = "12/09/2023 10:00:00 PM"; if (typeof(DisplayFormats29506)=="undefined") DisplayFormats29506 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29506)=="undefined") CountActives29506 = true; if (typeof(FinishMessages29506)=="undefined") FinishMessages29506 = ""; if (typeof(CountSteppers29506)!="number") CountSteppers29506 = -1; if (typeof(LeadingZeros29506)=="undefined") LeadingZeros29506 = true; CountSteppers29506 = Math.ceil(CountSteppers29506); if (CountSteppers29506 == 0) CountActives29506 = false; var SetTimeOutPeriods29506 = (Math.abs(CountSteppers29506)-1)*1000 + 990; puti(BackColors29506, ForeColors29506); var dthens29506 = new Date(TargetDates29506); var dnows29506 = new Date("05/10/2025 10:46:26 AM"); if(CountSteppers29506>0) ddiffs29506 = new Date(dnows29506-dthens29506); else ddiffs29506 = new Date(dthens29506-dnows29506); gsecss29506 = Math.floor(ddiffs29506.valueOf()/1000); CountBacks29506(gsecss29506);