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 (LeadingZeros28130 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28130(secs) { if (secs < 0) { document.getElementById("cntdwns28130").innerHTML = FinishMessages28130; return; } DisplayStrs28130 = DisplayFormats28130.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28130 = DisplayStrs28130.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28130 = DisplayStrs28130.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28130 = DisplayStrs28130.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28130").innerHTML = DisplayStrs28130; if (CountActives28130) //alert(SetTimeOutPeriods28130); setTimeout("CountBacks28130(" + (secs+CountSteppers28130) + ")", SetTimeOutPeriods28130); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28130)=="undefined") BackColors28130 = ""; if (typeof(ForeColors28130)=="undefined") ForeColors28130= "white"; if (typeof(TargetDates28130)=="undefined") TargetDates28130 = "06/04/2023 11:00:00 PM"; if (typeof(DisplayFormats28130)=="undefined") DisplayFormats28130 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28130)=="undefined") CountActives28130 = true; if (typeof(FinishMessages28130)=="undefined") FinishMessages28130 = ""; if (typeof(CountSteppers28130)!="number") CountSteppers28130 = -1; if (typeof(LeadingZeros28130)=="undefined") LeadingZeros28130 = true; CountSteppers28130 = Math.ceil(CountSteppers28130); if (CountSteppers28130 == 0) CountActives28130 = false; var SetTimeOutPeriods28130 = (Math.abs(CountSteppers28130)-1)*1000 + 990; puti(BackColors28130, ForeColors28130); var dthens28130 = new Date(TargetDates28130); var dnows28130 = new Date("05/11/2025 9:00:35 PM"); if(CountSteppers28130>0) ddiffs28130 = new Date(dnows28130-dthens28130); else ddiffs28130 = new Date(dthens28130-dnows28130); gsecss28130 = Math.floor(ddiffs28130.valueOf()/1000); CountBacks28130(gsecss28130);