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 (LeadingZeros34153 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34153(secs) { if (secs < 0) { document.getElementById("cntdwns34153").innerHTML = FinishMessages34153; return; } DisplayStrs34153 = DisplayFormats34153.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34153 = DisplayStrs34153.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34153 = DisplayStrs34153.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34153 = DisplayStrs34153.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34153").innerHTML = DisplayStrs34153; if (CountActives34153) //alert(SetTimeOutPeriods34153); setTimeout("CountBacks34153(" + (secs+CountSteppers34153) + ")", SetTimeOutPeriods34153); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34153)=="undefined") BackColors34153 = ""; if (typeof(ForeColors34153)=="undefined") ForeColors34153= "white"; if (typeof(TargetDates34153)=="undefined") TargetDates34153 = "08/27/2026 10:00:00 PM"; if (typeof(DisplayFormats34153)=="undefined") DisplayFormats34153 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34153)=="undefined") CountActives34153 = true; if (typeof(FinishMessages34153)=="undefined") FinishMessages34153 = ""; if (typeof(CountSteppers34153)!="number") CountSteppers34153 = -1; if (typeof(LeadingZeros34153)=="undefined") LeadingZeros34153 = true; CountSteppers34153 = Math.ceil(CountSteppers34153); if (CountSteppers34153 == 0) CountActives34153 = false; var SetTimeOutPeriods34153 = (Math.abs(CountSteppers34153)-1)*1000 + 990; puti(BackColors34153, ForeColors34153); var dthens34153 = new Date(TargetDates34153); var dnows34153 = new Date("08/25/2026 1:47:48 AM"); if(CountSteppers34153>0) ddiffs34153 = new Date(dnows34153-dthens34153); else ddiffs34153 = new Date(dthens34153-dnows34153); gsecss34153 = Math.floor(ddiffs34153.valueOf()/1000); CountBacks34153(gsecss34153);