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 (LeadingZeros28393 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28393(secs) { if (secs < 0) { document.getElementById("cntdwns28393").innerHTML = FinishMessages28393; return; } DisplayStrs28393 = DisplayFormats28393.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28393 = DisplayStrs28393.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28393 = DisplayStrs28393.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28393 = DisplayStrs28393.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28393").innerHTML = DisplayStrs28393; if (CountActives28393) //alert(SetTimeOutPeriods28393); setTimeout("CountBacks28393(" + (secs+CountSteppers28393) + ")", SetTimeOutPeriods28393); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28393)=="undefined") BackColors28393 = ""; if (typeof(ForeColors28393)=="undefined") ForeColors28393= "white"; if (typeof(TargetDates28393)=="undefined") TargetDates28393 = "05/30/2023 10:00:00 PM"; if (typeof(DisplayFormats28393)=="undefined") DisplayFormats28393 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28393)=="undefined") CountActives28393 = true; if (typeof(FinishMessages28393)=="undefined") FinishMessages28393 = ""; if (typeof(CountSteppers28393)!="number") CountSteppers28393 = -1; if (typeof(LeadingZeros28393)=="undefined") LeadingZeros28393 = true; CountSteppers28393 = Math.ceil(CountSteppers28393); if (CountSteppers28393 == 0) CountActives28393 = false; var SetTimeOutPeriods28393 = (Math.abs(CountSteppers28393)-1)*1000 + 990; puti(BackColors28393, ForeColors28393); var dthens28393 = new Date(TargetDates28393); var dnows28393 = new Date("05/09/2025 10:07:50 AM"); if(CountSteppers28393>0) ddiffs28393 = new Date(dnows28393-dthens28393); else ddiffs28393 = new Date(dthens28393-dnows28393); gsecss28393 = Math.floor(ddiffs28393.valueOf()/1000); CountBacks28393(gsecss28393);