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 (LeadingZeros1680210000top28123 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks1680210000top28123(secs) { if (secs < 0) { document.getElementById("cntdwns1680210000top28123").innerHTML = FinishMessages1680210000top28123; return; } DisplayStrs1680210000top28123 = DisplayFormats1680210000top28123.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs1680210000top28123 = DisplayStrs1680210000top28123.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs1680210000top28123 = DisplayStrs1680210000top28123.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs1680210000top28123 = DisplayStrs1680210000top28123.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns1680210000top28123").innerHTML = DisplayStrs1680210000top28123; if (CountActives1680210000top28123) //alert(SetTimeOutPeriods1680210000top28123); setTimeout("CountBacks1680210000top28123(" + (secs+CountSteppers1680210000top28123) + ")", SetTimeOutPeriods1680210000top28123); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors1680210000top28123)=="undefined") BackColors1680210000top28123 = ""; if (typeof(ForeColors1680210000top28123)=="undefined") ForeColors1680210000top28123= "white"; if (typeof(TargetDates1680210000top28123)=="undefined") TargetDates1680210000top28123 = "03/30/2023 11:00:00 PM"; if (typeof(DisplayFormats1680210000top28123)=="undefined") DisplayFormats1680210000top28123 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives1680210000top28123)=="undefined") CountActives1680210000top28123 = true; if (typeof(FinishMessages1680210000top28123)=="undefined") FinishMessages1680210000top28123 = ""; if (typeof(CountSteppers1680210000top28123)!="number") CountSteppers1680210000top28123 = -1; if (typeof(LeadingZeros1680210000top28123)=="undefined") LeadingZeros1680210000top28123 = true; CountSteppers1680210000top28123 = Math.ceil(CountSteppers1680210000top28123); if (CountSteppers1680210000top28123 == 0) CountActives1680210000top28123 = false; var SetTimeOutPeriods1680210000top28123 = (Math.abs(CountSteppers1680210000top28123)-1)*1000 + 990; puti(BackColors1680210000top28123, ForeColors1680210000top28123); var dthens1680210000top28123 = new Date(TargetDates1680210000top28123); var dnows1680210000top28123 = new Date("05/13/2025 4:16:22 PM"); if(CountSteppers1680210000top28123>0) ddiffs1680210000top28123 = new Date(dnows1680210000top28123-dthens1680210000top28123); else ddiffs1680210000top28123 = new Date(dthens1680210000top28123-dnows1680210000top28123); gsecss1680210000top28123 = Math.floor(ddiffs1680210000top28123.valueOf()/1000); CountBacks1680210000top28123(gsecss1680210000top28123);