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 (LeadingZeros28097 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28097(secs) { if (secs < 0) { document.getElementById("cntdwns28097").innerHTML = FinishMessages28097; return; } DisplayStrs28097 = DisplayFormats28097.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28097 = DisplayStrs28097.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28097 = DisplayStrs28097.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28097 = DisplayStrs28097.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28097").innerHTML = DisplayStrs28097; if (CountActives28097) //alert(SetTimeOutPeriods28097); setTimeout("CountBacks28097(" + (secs+CountSteppers28097) + ")", SetTimeOutPeriods28097); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28097)=="undefined") BackColors28097 = ""; if (typeof(ForeColors28097)=="undefined") ForeColors28097= "white"; if (typeof(TargetDates28097)=="undefined") TargetDates28097 = "03/30/2023 10:00:00 PM"; if (typeof(DisplayFormats28097)=="undefined") DisplayFormats28097 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28097)=="undefined") CountActives28097 = true; if (typeof(FinishMessages28097)=="undefined") FinishMessages28097 = ""; if (typeof(CountSteppers28097)!="number") CountSteppers28097 = -1; if (typeof(LeadingZeros28097)=="undefined") LeadingZeros28097 = true; CountSteppers28097 = Math.ceil(CountSteppers28097); if (CountSteppers28097 == 0) CountActives28097 = false; var SetTimeOutPeriods28097 = (Math.abs(CountSteppers28097)-1)*1000 + 990; puti(BackColors28097, ForeColors28097); var dthens28097 = new Date(TargetDates28097); var dnows28097 = new Date("05/13/2025 4:22:01 AM"); if(CountSteppers28097>0) ddiffs28097 = new Date(dnows28097-dthens28097); else ddiffs28097 = new Date(dthens28097-dnows28097); gsecss28097 = Math.floor(ddiffs28097.valueOf()/1000); CountBacks28097(gsecss28097);