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 (LeadingZeros1680206400top26896 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks1680206400top26896(secs) { if (secs < 0) { document.getElementById("cntdwns1680206400top26896").innerHTML = FinishMessages1680206400top26896; return; } DisplayStrs1680206400top26896 = DisplayFormats1680206400top26896.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs1680206400top26896 = DisplayStrs1680206400top26896.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs1680206400top26896 = DisplayStrs1680206400top26896.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs1680206400top26896 = DisplayStrs1680206400top26896.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns1680206400top26896").innerHTML = DisplayStrs1680206400top26896; if (CountActives1680206400top26896) //alert(SetTimeOutPeriods1680206400top26896); setTimeout("CountBacks1680206400top26896(" + (secs+CountSteppers1680206400top26896) + ")", SetTimeOutPeriods1680206400top26896); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors1680206400top26896)=="undefined") BackColors1680206400top26896 = ""; if (typeof(ForeColors1680206400top26896)=="undefined") ForeColors1680206400top26896= "white"; if (typeof(TargetDates1680206400top26896)=="undefined") TargetDates1680206400top26896 = "03/30/2023 10:00:00 PM"; if (typeof(DisplayFormats1680206400top26896)=="undefined") DisplayFormats1680206400top26896 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives1680206400top26896)=="undefined") CountActives1680206400top26896 = true; if (typeof(FinishMessages1680206400top26896)=="undefined") FinishMessages1680206400top26896 = ""; if (typeof(CountSteppers1680206400top26896)!="number") CountSteppers1680206400top26896 = -1; if (typeof(LeadingZeros1680206400top26896)=="undefined") LeadingZeros1680206400top26896 = true; CountSteppers1680206400top26896 = Math.ceil(CountSteppers1680206400top26896); if (CountSteppers1680206400top26896 == 0) CountActives1680206400top26896 = false; var SetTimeOutPeriods1680206400top26896 = (Math.abs(CountSteppers1680206400top26896)-1)*1000 + 990; puti(BackColors1680206400top26896, ForeColors1680206400top26896); var dthens1680206400top26896 = new Date(TargetDates1680206400top26896); var dnows1680206400top26896 = new Date("05/13/2025 3:20:42 PM"); if(CountSteppers1680206400top26896>0) ddiffs1680206400top26896 = new Date(dnows1680206400top26896-dthens1680206400top26896); else ddiffs1680206400top26896 = new Date(dthens1680206400top26896-dnows1680206400top26896); gsecss1680206400top26896 = Math.floor(ddiffs1680206400top26896.valueOf()/1000); CountBacks1680206400top26896(gsecss1680206400top26896);