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 (LeadingZeros28357 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28357(secs) { if (secs < 0) { document.getElementById("cntdwns28357").innerHTML = FinishMessages28357; return; } DisplayStrs28357 = DisplayFormats28357.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28357 = DisplayStrs28357.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28357 = DisplayStrs28357.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28357 = DisplayStrs28357.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28357").innerHTML = DisplayStrs28357; if (CountActives28357) //alert(SetTimeOutPeriods28357); setTimeout("CountBacks28357(" + (secs+CountSteppers28357) + ")", SetTimeOutPeriods28357); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28357)=="undefined") BackColors28357 = ""; if (typeof(ForeColors28357)=="undefined") ForeColors28357= "white"; if (typeof(TargetDates28357)=="undefined") TargetDates28357 = "09/25/2023 10:00:00 PM"; if (typeof(DisplayFormats28357)=="undefined") DisplayFormats28357 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28357)=="undefined") CountActives28357 = true; if (typeof(FinishMessages28357)=="undefined") FinishMessages28357 = ""; if (typeof(CountSteppers28357)!="number") CountSteppers28357 = -1; if (typeof(LeadingZeros28357)=="undefined") LeadingZeros28357 = true; CountSteppers28357 = Math.ceil(CountSteppers28357); if (CountSteppers28357 == 0) CountActives28357 = false; var SetTimeOutPeriods28357 = (Math.abs(CountSteppers28357)-1)*1000 + 990; puti(BackColors28357, ForeColors28357); var dthens28357 = new Date(TargetDates28357); var dnows28357 = new Date("05/09/2025 12:53:03 PM"); if(CountSteppers28357>0) ddiffs28357 = new Date(dnows28357-dthens28357); else ddiffs28357 = new Date(dthens28357-dnows28357); gsecss28357 = Math.floor(ddiffs28357.valueOf()/1000); CountBacks28357(gsecss28357);