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 (LeadingZeros28495 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28495(secs) { if (secs < 0) { document.getElementById("cntdwns28495").innerHTML = FinishMessages28495; return; } DisplayStrs28495 = DisplayFormats28495.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28495 = DisplayStrs28495.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28495 = DisplayStrs28495.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28495 = DisplayStrs28495.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28495").innerHTML = DisplayStrs28495; if (CountActives28495) //alert(SetTimeOutPeriods28495); setTimeout("CountBacks28495(" + (secs+CountSteppers28495) + ")", SetTimeOutPeriods28495); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28495)=="undefined") BackColors28495 = ""; if (typeof(ForeColors28495)=="undefined") ForeColors28495= "white"; if (typeof(TargetDates28495)=="undefined") TargetDates28495 = "06/05/2023 10:00:00 PM"; if (typeof(DisplayFormats28495)=="undefined") DisplayFormats28495 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28495)=="undefined") CountActives28495 = true; if (typeof(FinishMessages28495)=="undefined") FinishMessages28495 = ""; if (typeof(CountSteppers28495)!="number") CountSteppers28495 = -1; if (typeof(LeadingZeros28495)=="undefined") LeadingZeros28495 = true; CountSteppers28495 = Math.ceil(CountSteppers28495); if (CountSteppers28495 == 0) CountActives28495 = false; var SetTimeOutPeriods28495 = (Math.abs(CountSteppers28495)-1)*1000 + 990; puti(BackColors28495, ForeColors28495); var dthens28495 = new Date(TargetDates28495); var dnows28495 = new Date("05/11/2025 1:35:06 AM"); if(CountSteppers28495>0) ddiffs28495 = new Date(dnows28495-dthens28495); else ddiffs28495 = new Date(dthens28495-dnows28495); gsecss28495 = Math.floor(ddiffs28495.valueOf()/1000); CountBacks28495(gsecss28495);