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 (LeadingZeros28527 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28527(secs) { if (secs < 0) { document.getElementById("cntdwns28527").innerHTML = FinishMessages28527; return; } DisplayStrs28527 = DisplayFormats28527.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28527 = DisplayStrs28527.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28527 = DisplayStrs28527.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28527 = DisplayStrs28527.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28527").innerHTML = DisplayStrs28527; if (CountActives28527) //alert(SetTimeOutPeriods28527); setTimeout("CountBacks28527(" + (secs+CountSteppers28527) + ")", SetTimeOutPeriods28527); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28527)=="undefined") BackColors28527 = ""; if (typeof(ForeColors28527)=="undefined") ForeColors28527= "white"; if (typeof(TargetDates28527)=="undefined") TargetDates28527 = "05/31/2023 10:00:00 PM"; if (typeof(DisplayFormats28527)=="undefined") DisplayFormats28527 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28527)=="undefined") CountActives28527 = true; if (typeof(FinishMessages28527)=="undefined") FinishMessages28527 = ""; if (typeof(CountSteppers28527)!="number") CountSteppers28527 = -1; if (typeof(LeadingZeros28527)=="undefined") LeadingZeros28527 = true; CountSteppers28527 = Math.ceil(CountSteppers28527); if (CountSteppers28527 == 0) CountActives28527 = false; var SetTimeOutPeriods28527 = (Math.abs(CountSteppers28527)-1)*1000 + 990; puti(BackColors28527, ForeColors28527); var dthens28527 = new Date(TargetDates28527); var dnows28527 = new Date("05/11/2025 7:45:25 AM"); if(CountSteppers28527>0) ddiffs28527 = new Date(dnows28527-dthens28527); else ddiffs28527 = new Date(dthens28527-dnows28527); gsecss28527 = Math.floor(ddiffs28527.valueOf()/1000); CountBacks28527(gsecss28527);