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 (LeadingZeros34411 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34411(secs) { if (secs < 0) { document.getElementById("cntdwns34411").innerHTML = FinishMessages34411; return; } DisplayStrs34411 = DisplayFormats34411.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34411 = DisplayStrs34411.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34411 = DisplayStrs34411.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34411 = DisplayStrs34411.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34411").innerHTML = DisplayStrs34411; if (CountActives34411) //alert(SetTimeOutPeriods34411); setTimeout("CountBacks34411(" + (secs+CountSteppers34411) + ")", SetTimeOutPeriods34411); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34411)=="undefined") BackColors34411 = ""; if (typeof(ForeColors34411)=="undefined") ForeColors34411= "white"; if (typeof(TargetDates34411)=="undefined") TargetDates34411 = "11/23/2026 11:00:00 PM"; if (typeof(DisplayFormats34411)=="undefined") DisplayFormats34411 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34411)=="undefined") CountActives34411 = true; if (typeof(FinishMessages34411)=="undefined") FinishMessages34411 = ""; if (typeof(CountSteppers34411)!="number") CountSteppers34411 = -1; if (typeof(LeadingZeros34411)=="undefined") LeadingZeros34411 = true; CountSteppers34411 = Math.ceil(CountSteppers34411); if (CountSteppers34411 == 0) CountActives34411 = false; var SetTimeOutPeriods34411 = (Math.abs(CountSteppers34411)-1)*1000 + 990; puti(BackColors34411, ForeColors34411); var dthens34411 = new Date(TargetDates34411); var dnows34411 = new Date("11/21/2026 10:48:37 AM"); if(CountSteppers34411>0) ddiffs34411 = new Date(dnows34411-dthens34411); else ddiffs34411 = new Date(dthens34411-dnows34411); gsecss34411 = Math.floor(ddiffs34411.valueOf()/1000); CountBacks34411(gsecss34411);