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 (LeadingZeros28407 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28407(secs) { if (secs < 0) { document.getElementById("cntdwns28407").innerHTML = FinishMessages28407; return; } DisplayStrs28407 = DisplayFormats28407.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28407 = DisplayStrs28407.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28407 = DisplayStrs28407.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28407 = DisplayStrs28407.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28407").innerHTML = DisplayStrs28407; if (CountActives28407) //alert(SetTimeOutPeriods28407); setTimeout("CountBacks28407(" + (secs+CountSteppers28407) + ")", SetTimeOutPeriods28407); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28407)=="undefined") BackColors28407 = ""; if (typeof(ForeColors28407)=="undefined") ForeColors28407= "white"; if (typeof(TargetDates28407)=="undefined") TargetDates28407 = "06/05/2023 10:00:00 PM"; if (typeof(DisplayFormats28407)=="undefined") DisplayFormats28407 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28407)=="undefined") CountActives28407 = true; if (typeof(FinishMessages28407)=="undefined") FinishMessages28407 = ""; if (typeof(CountSteppers28407)!="number") CountSteppers28407 = -1; if (typeof(LeadingZeros28407)=="undefined") LeadingZeros28407 = true; CountSteppers28407 = Math.ceil(CountSteppers28407); if (CountSteppers28407 == 0) CountActives28407 = false; var SetTimeOutPeriods28407 = (Math.abs(CountSteppers28407)-1)*1000 + 990; puti(BackColors28407, ForeColors28407); var dthens28407 = new Date(TargetDates28407); var dnows28407 = new Date("05/09/2025 10:07:50 AM"); if(CountSteppers28407>0) ddiffs28407 = new Date(dnows28407-dthens28407); else ddiffs28407 = new Date(dthens28407-dnows28407); gsecss28407 = Math.floor(ddiffs28407.valueOf()/1000); CountBacks28407(gsecss28407);