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 (LeadingZeros26615 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks26615(secs) { if (secs < 0) { document.getElementById("cntdwns26615").innerHTML = FinishMessages26615; return; } DisplayStrs26615 = DisplayFormats26615.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs26615 = DisplayStrs26615.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs26615 = DisplayStrs26615.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs26615 = DisplayStrs26615.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns26615").innerHTML = DisplayStrs26615; if (CountActives26615) //alert(SetTimeOutPeriods26615); setTimeout("CountBacks26615(" + (secs+CountSteppers26615) + ")", SetTimeOutPeriods26615); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors26615)=="undefined") BackColors26615 = ""; if (typeof(ForeColors26615)=="undefined") ForeColors26615= "white"; if (typeof(TargetDates26615)=="undefined") TargetDates26615 = "03/26/2023 11:00:00 PM"; if (typeof(DisplayFormats26615)=="undefined") DisplayFormats26615 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives26615)=="undefined") CountActives26615 = true; if (typeof(FinishMessages26615)=="undefined") FinishMessages26615 = ""; if (typeof(CountSteppers26615)!="number") CountSteppers26615 = -1; if (typeof(LeadingZeros26615)=="undefined") LeadingZeros26615 = true; CountSteppers26615 = Math.ceil(CountSteppers26615); if (CountSteppers26615 == 0) CountActives26615 = false; var SetTimeOutPeriods26615 = (Math.abs(CountSteppers26615)-1)*1000 + 990; puti(BackColors26615, ForeColors26615); var dthens26615 = new Date(TargetDates26615); var dnows26615 = new Date("05/13/2025 12:00:18 PM"); if(CountSteppers26615>0) ddiffs26615 = new Date(dnows26615-dthens26615); else ddiffs26615 = new Date(dthens26615-dnows26615); gsecss26615 = Math.floor(ddiffs26615.valueOf()/1000); CountBacks26615(gsecss26615);