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 (LeadingZeros28371 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28371(secs) { if (secs < 0) { document.getElementById("cntdwns28371").innerHTML = FinishMessages28371; return; } DisplayStrs28371 = DisplayFormats28371.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28371 = DisplayStrs28371.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28371 = DisplayStrs28371.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28371 = DisplayStrs28371.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28371").innerHTML = DisplayStrs28371; if (CountActives28371) //alert(SetTimeOutPeriods28371); setTimeout("CountBacks28371(" + (secs+CountSteppers28371) + ")", SetTimeOutPeriods28371); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28371)=="undefined") BackColors28371 = ""; if (typeof(ForeColors28371)=="undefined") ForeColors28371= "white"; if (typeof(TargetDates28371)=="undefined") TargetDates28371 = "05/30/2023 10:00:00 PM"; if (typeof(DisplayFormats28371)=="undefined") DisplayFormats28371 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28371)=="undefined") CountActives28371 = true; if (typeof(FinishMessages28371)=="undefined") FinishMessages28371 = ""; if (typeof(CountSteppers28371)!="number") CountSteppers28371 = -1; if (typeof(LeadingZeros28371)=="undefined") LeadingZeros28371 = true; CountSteppers28371 = Math.ceil(CountSteppers28371); if (CountSteppers28371 == 0) CountActives28371 = false; var SetTimeOutPeriods28371 = (Math.abs(CountSteppers28371)-1)*1000 + 990; puti(BackColors28371, ForeColors28371); var dthens28371 = new Date(TargetDates28371); var dnows28371 = new Date("05/09/2025 10:09:36 AM"); if(CountSteppers28371>0) ddiffs28371 = new Date(dnows28371-dthens28371); else ddiffs28371 = new Date(dthens28371-dnows28371); gsecss28371 = Math.floor(ddiffs28371.valueOf()/1000); CountBacks28371(gsecss28371);