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 (LeadingZeros29306 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29306(secs) { if (secs < 0) { document.getElementById("cntdwns29306").innerHTML = FinishMessages29306; return; } DisplayStrs29306 = DisplayFormats29306.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29306 = DisplayStrs29306.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29306 = DisplayStrs29306.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29306 = DisplayStrs29306.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29306").innerHTML = DisplayStrs29306; if (CountActives29306) //alert(SetTimeOutPeriods29306); setTimeout("CountBacks29306(" + (secs+CountSteppers29306) + ")", SetTimeOutPeriods29306); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29306)=="undefined") BackColors29306 = ""; if (typeof(ForeColors29306)=="undefined") ForeColors29306= "white"; if (typeof(TargetDates29306)=="undefined") TargetDates29306 = "12/11/2023 9:00:00 PM"; if (typeof(DisplayFormats29306)=="undefined") DisplayFormats29306 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29306)=="undefined") CountActives29306 = true; if (typeof(FinishMessages29306)=="undefined") FinishMessages29306 = ""; if (typeof(CountSteppers29306)!="number") CountSteppers29306 = -1; if (typeof(LeadingZeros29306)=="undefined") LeadingZeros29306 = true; CountSteppers29306 = Math.ceil(CountSteppers29306); if (CountSteppers29306 == 0) CountActives29306 = false; var SetTimeOutPeriods29306 = (Math.abs(CountSteppers29306)-1)*1000 + 990; puti(BackColors29306, ForeColors29306); var dthens29306 = new Date(TargetDates29306); var dnows29306 = new Date("05/11/2025 2:14:16 PM"); if(CountSteppers29306>0) ddiffs29306 = new Date(dnows29306-dthens29306); else ddiffs29306 = new Date(dthens29306-dnows29306); gsecss29306 = Math.floor(ddiffs29306.valueOf()/1000); CountBacks29306(gsecss29306);