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 (LeadingZeros28655 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28655(secs) { if (secs < 0) { document.getElementById("cntdwns28655").innerHTML = FinishMessages28655; return; } DisplayStrs28655 = DisplayFormats28655.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28655 = DisplayStrs28655.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28655 = DisplayStrs28655.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28655 = DisplayStrs28655.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28655").innerHTML = DisplayStrs28655; if (CountActives28655) //alert(SetTimeOutPeriods28655); setTimeout("CountBacks28655(" + (secs+CountSteppers28655) + ")", SetTimeOutPeriods28655); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28655)=="undefined") BackColors28655 = ""; if (typeof(ForeColors28655)=="undefined") ForeColors28655= "white"; if (typeof(TargetDates28655)=="undefined") TargetDates28655 = "06/12/2023 10:00:00 PM"; if (typeof(DisplayFormats28655)=="undefined") DisplayFormats28655 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28655)=="undefined") CountActives28655 = true; if (typeof(FinishMessages28655)=="undefined") FinishMessages28655 = ""; if (typeof(CountSteppers28655)!="number") CountSteppers28655 = -1; if (typeof(LeadingZeros28655)=="undefined") LeadingZeros28655 = true; CountSteppers28655 = Math.ceil(CountSteppers28655); if (CountSteppers28655 == 0) CountActives28655 = false; var SetTimeOutPeriods28655 = (Math.abs(CountSteppers28655)-1)*1000 + 990; puti(BackColors28655, ForeColors28655); var dthens28655 = new Date(TargetDates28655); var dnows28655 = new Date("05/09/2025 10:10:28 AM"); if(CountSteppers28655>0) ddiffs28655 = new Date(dnows28655-dthens28655); else ddiffs28655 = new Date(dthens28655-dnows28655); gsecss28655 = Math.floor(ddiffs28655.valueOf()/1000); CountBacks28655(gsecss28655);