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 (LeadingZeros28466 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28466(secs) { if (secs < 0) { document.getElementById("cntdwns28466").innerHTML = FinishMessages28466; return; } DisplayStrs28466 = DisplayFormats28466.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28466 = DisplayStrs28466.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28466 = DisplayStrs28466.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28466 = DisplayStrs28466.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28466").innerHTML = DisplayStrs28466; if (CountActives28466) //alert(SetTimeOutPeriods28466); setTimeout("CountBacks28466(" + (secs+CountSteppers28466) + ")", SetTimeOutPeriods28466); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28466)=="undefined") BackColors28466 = ""; if (typeof(ForeColors28466)=="undefined") ForeColors28466= "white"; if (typeof(TargetDates28466)=="undefined") TargetDates28466 = "06/01/2023 10:00:00 PM"; if (typeof(DisplayFormats28466)=="undefined") DisplayFormats28466 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28466)=="undefined") CountActives28466 = true; if (typeof(FinishMessages28466)=="undefined") FinishMessages28466 = ""; if (typeof(CountSteppers28466)!="number") CountSteppers28466 = -1; if (typeof(LeadingZeros28466)=="undefined") LeadingZeros28466 = true; CountSteppers28466 = Math.ceil(CountSteppers28466); if (CountSteppers28466 == 0) CountActives28466 = false; var SetTimeOutPeriods28466 = (Math.abs(CountSteppers28466)-1)*1000 + 990; puti(BackColors28466, ForeColors28466); var dthens28466 = new Date(TargetDates28466); var dnows28466 = new Date("05/11/2025 5:40:00 PM"); if(CountSteppers28466>0) ddiffs28466 = new Date(dnows28466-dthens28466); else ddiffs28466 = new Date(dthens28466-dnows28466); gsecss28466 = Math.floor(ddiffs28466.valueOf()/1000); CountBacks28466(gsecss28466);