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 (LeadingZeros28183 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28183(secs) { if (secs < 0) { document.getElementById("cntdwns28183").innerHTML = FinishMessages28183; return; } DisplayStrs28183 = DisplayFormats28183.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28183 = DisplayStrs28183.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28183 = DisplayStrs28183.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28183 = DisplayStrs28183.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28183").innerHTML = DisplayStrs28183; if (CountActives28183) //alert(SetTimeOutPeriods28183); setTimeout("CountBacks28183(" + (secs+CountSteppers28183) + ")", SetTimeOutPeriods28183); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28183)=="undefined") BackColors28183 = ""; if (typeof(ForeColors28183)=="undefined") ForeColors28183= "white"; if (typeof(TargetDates28183)=="undefined") TargetDates28183 = "09/27/2023 11:00:00 PM"; if (typeof(DisplayFormats28183)=="undefined") DisplayFormats28183 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28183)=="undefined") CountActives28183 = true; if (typeof(FinishMessages28183)=="undefined") FinishMessages28183 = ""; if (typeof(CountSteppers28183)!="number") CountSteppers28183 = -1; if (typeof(LeadingZeros28183)=="undefined") LeadingZeros28183 = true; CountSteppers28183 = Math.ceil(CountSteppers28183); if (CountSteppers28183 == 0) CountActives28183 = false; var SetTimeOutPeriods28183 = (Math.abs(CountSteppers28183)-1)*1000 + 990; puti(BackColors28183, ForeColors28183); var dthens28183 = new Date(TargetDates28183); var dnows28183 = new Date("05/11/2025 5:39:59 PM"); if(CountSteppers28183>0) ddiffs28183 = new Date(dnows28183-dthens28183); else ddiffs28183 = new Date(dthens28183-dnows28183); gsecss28183 = Math.floor(ddiffs28183.valueOf()/1000); CountBacks28183(gsecss28183);