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 (LeadingZeros34143 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34143(secs) { if (secs < 0) { document.getElementById("cntdwns34143").innerHTML = FinishMessages34143; return; } DisplayStrs34143 = DisplayFormats34143.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34143 = DisplayStrs34143.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34143 = DisplayStrs34143.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34143 = DisplayStrs34143.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34143").innerHTML = DisplayStrs34143; if (CountActives34143) //alert(SetTimeOutPeriods34143); setTimeout("CountBacks34143(" + (secs+CountSteppers34143) + ")", SetTimeOutPeriods34143); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34143)=="undefined") BackColors34143 = ""; if (typeof(ForeColors34143)=="undefined") ForeColors34143= "white"; if (typeof(TargetDates34143)=="undefined") TargetDates34143 = "08/22/2026 10:00:00 PM"; if (typeof(DisplayFormats34143)=="undefined") DisplayFormats34143 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34143)=="undefined") CountActives34143 = true; if (typeof(FinishMessages34143)=="undefined") FinishMessages34143 = ""; if (typeof(CountSteppers34143)!="number") CountSteppers34143 = -1; if (typeof(LeadingZeros34143)=="undefined") LeadingZeros34143 = true; CountSteppers34143 = Math.ceil(CountSteppers34143); if (CountSteppers34143 == 0) CountActives34143 = false; var SetTimeOutPeriods34143 = (Math.abs(CountSteppers34143)-1)*1000 + 990; puti(BackColors34143, ForeColors34143); var dthens34143 = new Date(TargetDates34143); var dnows34143 = new Date("08/19/2026 4:13:47 AM"); if(CountSteppers34143>0) ddiffs34143 = new Date(dnows34143-dthens34143); else ddiffs34143 = new Date(dthens34143-dnows34143); gsecss34143 = Math.floor(ddiffs34143.valueOf()/1000); CountBacks34143(gsecss34143);