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 (LeadingZeros34346 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34346(secs) { if (secs < 0) { document.getElementById("cntdwns34346").innerHTML = FinishMessages34346; return; } DisplayStrs34346 = DisplayFormats34346.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34346 = DisplayStrs34346.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34346 = DisplayStrs34346.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34346 = DisplayStrs34346.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34346").innerHTML = DisplayStrs34346; if (CountActives34346) //alert(SetTimeOutPeriods34346); setTimeout("CountBacks34346(" + (secs+CountSteppers34346) + ")", SetTimeOutPeriods34346); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34346)=="undefined") BackColors34346 = ""; if (typeof(ForeColors34346)=="undefined") ForeColors34346= "white"; if (typeof(TargetDates34346)=="undefined") TargetDates34346 = "10/27/2026 11:00:00 PM"; if (typeof(DisplayFormats34346)=="undefined") DisplayFormats34346 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34346)=="undefined") CountActives34346 = true; if (typeof(FinishMessages34346)=="undefined") FinishMessages34346 = ""; if (typeof(CountSteppers34346)!="number") CountSteppers34346 = -1; if (typeof(LeadingZeros34346)=="undefined") LeadingZeros34346 = true; CountSteppers34346 = Math.ceil(CountSteppers34346); if (CountSteppers34346 == 0) CountActives34346 = false; var SetTimeOutPeriods34346 = (Math.abs(CountSteppers34346)-1)*1000 + 990; puti(BackColors34346, ForeColors34346); var dthens34346 = new Date(TargetDates34346); var dnows34346 = new Date("10/26/2026 1:58:48 PM"); if(CountSteppers34346>0) ddiffs34346 = new Date(dnows34346-dthens34346); else ddiffs34346 = new Date(dthens34346-dnows34346); gsecss34346 = Math.floor(ddiffs34346.valueOf()/1000); CountBacks34346(gsecss34346);