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 (LeadingZeros29445 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29445(secs) { if (secs < 0) { document.getElementById("cntdwns29445").innerHTML = FinishMessages29445; return; } DisplayStrs29445 = DisplayFormats29445.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29445 = DisplayStrs29445.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29445 = DisplayStrs29445.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29445 = DisplayStrs29445.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29445").innerHTML = DisplayStrs29445; if (CountActives29445) //alert(SetTimeOutPeriods29445); setTimeout("CountBacks29445(" + (secs+CountSteppers29445) + ")", SetTimeOutPeriods29445); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29445)=="undefined") BackColors29445 = ""; if (typeof(ForeColors29445)=="undefined") ForeColors29445= "white"; if (typeof(TargetDates29445)=="undefined") TargetDates29445 = "12/09/2023 10:00:00 PM"; if (typeof(DisplayFormats29445)=="undefined") DisplayFormats29445 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29445)=="undefined") CountActives29445 = true; if (typeof(FinishMessages29445)=="undefined") FinishMessages29445 = ""; if (typeof(CountSteppers29445)!="number") CountSteppers29445 = -1; if (typeof(LeadingZeros29445)=="undefined") LeadingZeros29445 = true; CountSteppers29445 = Math.ceil(CountSteppers29445); if (CountSteppers29445 == 0) CountActives29445 = false; var SetTimeOutPeriods29445 = (Math.abs(CountSteppers29445)-1)*1000 + 990; puti(BackColors29445, ForeColors29445); var dthens29445 = new Date(TargetDates29445); var dnows29445 = new Date("05/09/2025 10:09:35 AM"); if(CountSteppers29445>0) ddiffs29445 = new Date(dnows29445-dthens29445); else ddiffs29445 = new Date(dthens29445-dnows29445); gsecss29445 = Math.floor(ddiffs29445.valueOf()/1000); CountBacks29445(gsecss29445);