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 (LeadingZeros28009 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28009(secs) { if (secs < 0) { document.getElementById("cntdwns28009").innerHTML = FinishMessages28009; return; } DisplayStrs28009 = DisplayFormats28009.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28009 = DisplayStrs28009.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28009 = DisplayStrs28009.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28009 = DisplayStrs28009.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28009").innerHTML = DisplayStrs28009; if (CountActives28009) //alert(SetTimeOutPeriods28009); setTimeout("CountBacks28009(" + (secs+CountSteppers28009) + ")", SetTimeOutPeriods28009); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28009)=="undefined") BackColors28009 = ""; if (typeof(ForeColors28009)=="undefined") ForeColors28009= "white"; if (typeof(TargetDates28009)=="undefined") TargetDates28009 = "05/30/2023 10:00:00 PM"; if (typeof(DisplayFormats28009)=="undefined") DisplayFormats28009 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28009)=="undefined") CountActives28009 = true; if (typeof(FinishMessages28009)=="undefined") FinishMessages28009 = ""; if (typeof(CountSteppers28009)!="number") CountSteppers28009 = -1; if (typeof(LeadingZeros28009)=="undefined") LeadingZeros28009 = true; CountSteppers28009 = Math.ceil(CountSteppers28009); if (CountSteppers28009 == 0) CountActives28009 = false; var SetTimeOutPeriods28009 = (Math.abs(CountSteppers28009)-1)*1000 + 990; puti(BackColors28009, ForeColors28009); var dthens28009 = new Date(TargetDates28009); var dnows28009 = new Date("05/11/2025 8:59:11 PM"); if(CountSteppers28009>0) ddiffs28009 = new Date(dnows28009-dthens28009); else ddiffs28009 = new Date(dthens28009-dnows28009); gsecss28009 = Math.floor(ddiffs28009.valueOf()/1000); CountBacks28009(gsecss28009);