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 (LeadingZeros34414 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34414(secs) { if (secs < 0) { document.getElementById("cntdwns34414").innerHTML = FinishMessages34414; return; } DisplayStrs34414 = DisplayFormats34414.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34414 = DisplayStrs34414.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34414 = DisplayStrs34414.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34414 = DisplayStrs34414.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34414").innerHTML = DisplayStrs34414; if (CountActives34414) //alert(SetTimeOutPeriods34414); setTimeout("CountBacks34414(" + (secs+CountSteppers34414) + ")", SetTimeOutPeriods34414); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34414)=="undefined") BackColors34414 = ""; if (typeof(ForeColors34414)=="undefined") ForeColors34414= "white"; if (typeof(TargetDates34414)=="undefined") TargetDates34414 = "11/20/2026 3:00:00 PM"; if (typeof(DisplayFormats34414)=="undefined") DisplayFormats34414 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34414)=="undefined") CountActives34414 = true; if (typeof(FinishMessages34414)=="undefined") FinishMessages34414 = ""; if (typeof(CountSteppers34414)!="number") CountSteppers34414 = -1; if (typeof(LeadingZeros34414)=="undefined") LeadingZeros34414 = true; CountSteppers34414 = Math.ceil(CountSteppers34414); if (CountSteppers34414 == 0) CountActives34414 = false; var SetTimeOutPeriods34414 = (Math.abs(CountSteppers34414)-1)*1000 + 990; puti(BackColors34414, ForeColors34414); var dthens34414 = new Date(TargetDates34414); var dnows34414 = new Date("11/23/2026 7:03:55 AM"); if(CountSteppers34414>0) ddiffs34414 = new Date(dnows34414-dthens34414); else ddiffs34414 = new Date(dthens34414-dnows34414); gsecss34414 = Math.floor(ddiffs34414.valueOf()/1000); CountBacks34414(gsecss34414);