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 (LeadingZeros28979 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28979(secs) { if (secs < 0) { document.getElementById("cntdwns28979").innerHTML = FinishMessages28979; return; } DisplayStrs28979 = DisplayFormats28979.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28979 = DisplayStrs28979.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28979 = DisplayStrs28979.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28979 = DisplayStrs28979.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28979").innerHTML = DisplayStrs28979; if (CountActives28979) //alert(SetTimeOutPeriods28979); setTimeout("CountBacks28979(" + (secs+CountSteppers28979) + ")", SetTimeOutPeriods28979); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28979)=="undefined") BackColors28979 = ""; if (typeof(ForeColors28979)=="undefined") ForeColors28979= "white"; if (typeof(TargetDates28979)=="undefined") TargetDates28979 = "10/03/2023 10:00:00 PM"; if (typeof(DisplayFormats28979)=="undefined") DisplayFormats28979 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28979)=="undefined") CountActives28979 = true; if (typeof(FinishMessages28979)=="undefined") FinishMessages28979 = ""; if (typeof(CountSteppers28979)!="number") CountSteppers28979 = -1; if (typeof(LeadingZeros28979)=="undefined") LeadingZeros28979 = true; CountSteppers28979 = Math.ceil(CountSteppers28979); if (CountSteppers28979 == 0) CountActives28979 = false; var SetTimeOutPeriods28979 = (Math.abs(CountSteppers28979)-1)*1000 + 990; puti(BackColors28979, ForeColors28979); var dthens28979 = new Date(TargetDates28979); var dnows28979 = new Date("05/11/2025 1:36:29 AM"); if(CountSteppers28979>0) ddiffs28979 = new Date(dnows28979-dthens28979); else ddiffs28979 = new Date(dthens28979-dnows28979); gsecss28979 = Math.floor(ddiffs28979.valueOf()/1000); CountBacks28979(gsecss28979);