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 (LeadingZeros28973 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28973(secs) { if (secs < 0) { document.getElementById("cntdwns28973").innerHTML = FinishMessages28973; return; } DisplayStrs28973 = DisplayFormats28973.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28973 = DisplayStrs28973.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28973 = DisplayStrs28973.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28973 = DisplayStrs28973.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28973").innerHTML = DisplayStrs28973; if (CountActives28973) //alert(SetTimeOutPeriods28973); setTimeout("CountBacks28973(" + (secs+CountSteppers28973) + ")", SetTimeOutPeriods28973); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28973)=="undefined") BackColors28973 = ""; if (typeof(ForeColors28973)=="undefined") ForeColors28973= "white"; if (typeof(TargetDates28973)=="undefined") TargetDates28973 = "10/04/2023 10:00:00 PM"; if (typeof(DisplayFormats28973)=="undefined") DisplayFormats28973 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28973)=="undefined") CountActives28973 = true; if (typeof(FinishMessages28973)=="undefined") FinishMessages28973 = ""; if (typeof(CountSteppers28973)!="number") CountSteppers28973 = -1; if (typeof(LeadingZeros28973)=="undefined") LeadingZeros28973 = true; CountSteppers28973 = Math.ceil(CountSteppers28973); if (CountSteppers28973 == 0) CountActives28973 = false; var SetTimeOutPeriods28973 = (Math.abs(CountSteppers28973)-1)*1000 + 990; puti(BackColors28973, ForeColors28973); var dthens28973 = new Date(TargetDates28973); var dnows28973 = new Date("05/11/2025 5:42:38 PM"); if(CountSteppers28973>0) ddiffs28973 = new Date(dnows28973-dthens28973); else ddiffs28973 = new Date(dthens28973-dnows28973); gsecss28973 = Math.floor(ddiffs28973.valueOf()/1000); CountBacks28973(gsecss28973);