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 (LeadingZeros28790 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28790(secs) { if (secs < 0) { document.getElementById("cntdwns28790").innerHTML = FinishMessages28790; return; } DisplayStrs28790 = DisplayFormats28790.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28790 = DisplayStrs28790.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28790 = DisplayStrs28790.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28790 = DisplayStrs28790.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28790").innerHTML = DisplayStrs28790; if (CountActives28790) //alert(SetTimeOutPeriods28790); setTimeout("CountBacks28790(" + (secs+CountSteppers28790) + ")", SetTimeOutPeriods28790); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28790)=="undefined") BackColors28790 = ""; if (typeof(ForeColors28790)=="undefined") ForeColors28790= "white"; if (typeof(TargetDates28790)=="undefined") TargetDates28790 = "09/26/2023 10:00:00 PM"; if (typeof(DisplayFormats28790)=="undefined") DisplayFormats28790 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28790)=="undefined") CountActives28790 = true; if (typeof(FinishMessages28790)=="undefined") FinishMessages28790 = ""; if (typeof(CountSteppers28790)!="number") CountSteppers28790 = -1; if (typeof(LeadingZeros28790)=="undefined") LeadingZeros28790 = true; CountSteppers28790 = Math.ceil(CountSteppers28790); if (CountSteppers28790 == 0) CountActives28790 = false; var SetTimeOutPeriods28790 = (Math.abs(CountSteppers28790)-1)*1000 + 990; puti(BackColors28790, ForeColors28790); var dthens28790 = new Date(TargetDates28790); var dnows28790 = new Date("05/11/2025 2:13:14 PM"); if(CountSteppers28790>0) ddiffs28790 = new Date(dnows28790-dthens28790); else ddiffs28790 = new Date(dthens28790-dnows28790); gsecss28790 = Math.floor(ddiffs28790.valueOf()/1000); CountBacks28790(gsecss28790);