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 (LeadingZeros34120 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34120(secs) { if (secs < 0) { document.getElementById("cntdwns34120").innerHTML = FinishMessages34120; return; } DisplayStrs34120 = DisplayFormats34120.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34120 = DisplayStrs34120.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34120 = DisplayStrs34120.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34120 = DisplayStrs34120.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34120").innerHTML = DisplayStrs34120; if (CountActives34120) //alert(SetTimeOutPeriods34120); setTimeout("CountBacks34120(" + (secs+CountSteppers34120) + ")", SetTimeOutPeriods34120); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34120)=="undefined") BackColors34120 = ""; if (typeof(ForeColors34120)=="undefined") ForeColors34120= "white"; if (typeof(TargetDates34120)=="undefined") TargetDates34120 = "08/27/2026 10:00:00 PM"; if (typeof(DisplayFormats34120)=="undefined") DisplayFormats34120 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34120)=="undefined") CountActives34120 = true; if (typeof(FinishMessages34120)=="undefined") FinishMessages34120 = ""; if (typeof(CountSteppers34120)!="number") CountSteppers34120 = -1; if (typeof(LeadingZeros34120)=="undefined") LeadingZeros34120 = true; CountSteppers34120 = Math.ceil(CountSteppers34120); if (CountSteppers34120 == 0) CountActives34120 = false; var SetTimeOutPeriods34120 = (Math.abs(CountSteppers34120)-1)*1000 + 990; puti(BackColors34120, ForeColors34120); var dthens34120 = new Date(TargetDates34120); var dnows34120 = new Date("08/25/2026 1:48:37 AM"); if(CountSteppers34120>0) ddiffs34120 = new Date(dnows34120-dthens34120); else ddiffs34120 = new Date(dthens34120-dnows34120); gsecss34120 = Math.floor(ddiffs34120.valueOf()/1000); CountBacks34120(gsecss34120);