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 (LeadingZeros28128 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28128(secs) { if (secs < 0) { document.getElementById("cntdwns28128").innerHTML = FinishMessages28128; return; } DisplayStrs28128 = DisplayFormats28128.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28128 = DisplayStrs28128.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28128 = DisplayStrs28128.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28128 = DisplayStrs28128.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28128").innerHTML = DisplayStrs28128; if (CountActives28128) //alert(SetTimeOutPeriods28128); setTimeout("CountBacks28128(" + (secs+CountSteppers28128) + ")", SetTimeOutPeriods28128); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28128)=="undefined") BackColors28128 = ""; if (typeof(ForeColors28128)=="undefined") ForeColors28128= "white"; if (typeof(TargetDates28128)=="undefined") TargetDates28128 = "04/01/2023 11:00:00 PM"; if (typeof(DisplayFormats28128)=="undefined") DisplayFormats28128 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28128)=="undefined") CountActives28128 = true; if (typeof(FinishMessages28128)=="undefined") FinishMessages28128 = ""; if (typeof(CountSteppers28128)!="number") CountSteppers28128 = -1; if (typeof(LeadingZeros28128)=="undefined") LeadingZeros28128 = true; CountSteppers28128 = Math.ceil(CountSteppers28128); if (CountSteppers28128 == 0) CountActives28128 = false; var SetTimeOutPeriods28128 = (Math.abs(CountSteppers28128)-1)*1000 + 990; puti(BackColors28128, ForeColors28128); var dthens28128 = new Date(TargetDates28128); var dnows28128 = new Date("05/13/2025 11:57:41 AM"); if(CountSteppers28128>0) ddiffs28128 = new Date(dnows28128-dthens28128); else ddiffs28128 = new Date(dthens28128-dnows28128); gsecss28128 = Math.floor(ddiffs28128.valueOf()/1000); CountBacks28128(gsecss28128);