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 (LeadingZeros28792 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28792(secs) { if (secs < 0) { document.getElementById("cntdwns28792").innerHTML = FinishMessages28792; return; } DisplayStrs28792 = DisplayFormats28792.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28792 = DisplayStrs28792.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28792 = DisplayStrs28792.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28792 = DisplayStrs28792.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28792").innerHTML = DisplayStrs28792; if (CountActives28792) //alert(SetTimeOutPeriods28792); setTimeout("CountBacks28792(" + (secs+CountSteppers28792) + ")", SetTimeOutPeriods28792); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28792)=="undefined") BackColors28792 = ""; if (typeof(ForeColors28792)=="undefined") ForeColors28792= "white"; if (typeof(TargetDates28792)=="undefined") TargetDates28792 = "06/08/2026 7:00:00 AM"; if (typeof(DisplayFormats28792)=="undefined") DisplayFormats28792 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28792)=="undefined") CountActives28792 = true; if (typeof(FinishMessages28792)=="undefined") FinishMessages28792 = ""; if (typeof(CountSteppers28792)!="number") CountSteppers28792 = -1; if (typeof(LeadingZeros28792)=="undefined") LeadingZeros28792 = true; CountSteppers28792 = Math.ceil(CountSteppers28792); if (CountSteppers28792 == 0) CountActives28792 = false; var SetTimeOutPeriods28792 = (Math.abs(CountSteppers28792)-1)*1000 + 990; puti(BackColors28792, ForeColors28792); var dthens28792 = new Date(TargetDates28792); var dnows28792 = new Date("06/05/2026 4:53:51 PM"); if(CountSteppers28792>0) ddiffs28792 = new Date(dnows28792-dthens28792); else ddiffs28792 = new Date(dthens28792-dnows28792); gsecss28792 = Math.floor(ddiffs28792.valueOf()/1000); CountBacks28792(gsecss28792);