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 (LeadingZeros34085 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34085(secs) { if (secs < 0) { document.getElementById("cntdwns34085").innerHTML = FinishMessages34085; return; } DisplayStrs34085 = DisplayFormats34085.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34085 = DisplayStrs34085.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34085 = DisplayStrs34085.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34085 = DisplayStrs34085.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34085").innerHTML = DisplayStrs34085; if (CountActives34085) //alert(SetTimeOutPeriods34085); setTimeout("CountBacks34085(" + (secs+CountSteppers34085) + ")", SetTimeOutPeriods34085); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34085)=="undefined") BackColors34085 = ""; if (typeof(ForeColors34085)=="undefined") ForeColors34085= "white"; if (typeof(TargetDates34085)=="undefined") TargetDates34085 = "08/26/2026 10:00:00 PM"; if (typeof(DisplayFormats34085)=="undefined") DisplayFormats34085 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34085)=="undefined") CountActives34085 = true; if (typeof(FinishMessages34085)=="undefined") FinishMessages34085 = ""; if (typeof(CountSteppers34085)!="number") CountSteppers34085 = -1; if (typeof(LeadingZeros34085)=="undefined") LeadingZeros34085 = true; CountSteppers34085 = Math.ceil(CountSteppers34085); if (CountSteppers34085 == 0) CountActives34085 = false; var SetTimeOutPeriods34085 = (Math.abs(CountSteppers34085)-1)*1000 + 990; puti(BackColors34085, ForeColors34085); var dthens34085 = new Date(TargetDates34085); var dnows34085 = new Date("08/23/2026 9:38:28 AM"); if(CountSteppers34085>0) ddiffs34085 = new Date(dnows34085-dthens34085); else ddiffs34085 = new Date(dthens34085-dnows34085); gsecss34085 = Math.floor(ddiffs34085.valueOf()/1000); CountBacks34085(gsecss34085);