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 (LeadingZeros28081 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28081(secs) { if (secs < 0) { document.getElementById("cntdwns28081").innerHTML = FinishMessages28081; return; } DisplayStrs28081 = DisplayFormats28081.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28081 = DisplayStrs28081.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28081 = DisplayStrs28081.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28081 = DisplayStrs28081.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28081").innerHTML = DisplayStrs28081; if (CountActives28081) //alert(SetTimeOutPeriods28081); setTimeout("CountBacks28081(" + (secs+CountSteppers28081) + ")", SetTimeOutPeriods28081); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28081)=="undefined") BackColors28081 = ""; if (typeof(ForeColors28081)=="undefined") ForeColors28081= "white"; if (typeof(TargetDates28081)=="undefined") TargetDates28081 = "03/30/2023 11:00:00 PM"; if (typeof(DisplayFormats28081)=="undefined") DisplayFormats28081 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28081)=="undefined") CountActives28081 = true; if (typeof(FinishMessages28081)=="undefined") FinishMessages28081 = ""; if (typeof(CountSteppers28081)!="number") CountSteppers28081 = -1; if (typeof(LeadingZeros28081)=="undefined") LeadingZeros28081 = true; CountSteppers28081 = Math.ceil(CountSteppers28081); if (CountSteppers28081 == 0) CountActives28081 = false; var SetTimeOutPeriods28081 = (Math.abs(CountSteppers28081)-1)*1000 + 990; puti(BackColors28081, ForeColors28081); var dthens28081 = new Date(TargetDates28081); var dnows28081 = new Date("05/13/2025 11:58:55 AM"); if(CountSteppers28081>0) ddiffs28081 = new Date(dnows28081-dthens28081); else ddiffs28081 = new Date(dthens28081-dnows28081); gsecss28081 = Math.floor(ddiffs28081.valueOf()/1000); CountBacks28081(gsecss28081);