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 (LeadingZeros28607 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28607(secs) { if (secs < 0) { document.getElementById("cntdwns28607").innerHTML = FinishMessages28607; return; } DisplayStrs28607 = DisplayFormats28607.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28607 = DisplayStrs28607.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28607 = DisplayStrs28607.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28607 = DisplayStrs28607.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28607").innerHTML = DisplayStrs28607; if (CountActives28607) //alert(SetTimeOutPeriods28607); setTimeout("CountBacks28607(" + (secs+CountSteppers28607) + ")", SetTimeOutPeriods28607); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28607)=="undefined") BackColors28607 = ""; if (typeof(ForeColors28607)=="undefined") ForeColors28607= "white"; if (typeof(TargetDates28607)=="undefined") TargetDates28607 = "06/05/2023 10:00:00 PM"; if (typeof(DisplayFormats28607)=="undefined") DisplayFormats28607 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28607)=="undefined") CountActives28607 = true; if (typeof(FinishMessages28607)=="undefined") FinishMessages28607 = ""; if (typeof(CountSteppers28607)!="number") CountSteppers28607 = -1; if (typeof(LeadingZeros28607)=="undefined") LeadingZeros28607 = true; CountSteppers28607 = Math.ceil(CountSteppers28607); if (CountSteppers28607 == 0) CountActives28607 = false; var SetTimeOutPeriods28607 = (Math.abs(CountSteppers28607)-1)*1000 + 990; puti(BackColors28607, ForeColors28607); var dthens28607 = new Date(TargetDates28607); var dnows28607 = new Date("05/11/2025 2:13:14 PM"); if(CountSteppers28607>0) ddiffs28607 = new Date(dnows28607-dthens28607); else ddiffs28607 = new Date(dthens28607-dnows28607); gsecss28607 = Math.floor(ddiffs28607.valueOf()/1000); CountBacks28607(gsecss28607);