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 (LeadingZeros34347 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34347(secs) { if (secs < 0) { document.getElementById("cntdwns34347").innerHTML = FinishMessages34347; return; } DisplayStrs34347 = DisplayFormats34347.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34347 = DisplayStrs34347.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34347 = DisplayStrs34347.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34347 = DisplayStrs34347.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34347").innerHTML = DisplayStrs34347; if (CountActives34347) //alert(SetTimeOutPeriods34347); setTimeout("CountBacks34347(" + (secs+CountSteppers34347) + ")", SetTimeOutPeriods34347); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34347)=="undefined") BackColors34347 = ""; if (typeof(ForeColors34347)=="undefined") ForeColors34347= "white"; if (typeof(TargetDates34347)=="undefined") TargetDates34347 = "10/27/2026 11:00:00 PM"; if (typeof(DisplayFormats34347)=="undefined") DisplayFormats34347 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34347)=="undefined") CountActives34347 = true; if (typeof(FinishMessages34347)=="undefined") FinishMessages34347 = ""; if (typeof(CountSteppers34347)!="number") CountSteppers34347 = -1; if (typeof(LeadingZeros34347)=="undefined") LeadingZeros34347 = true; CountSteppers34347 = Math.ceil(CountSteppers34347); if (CountSteppers34347 == 0) CountActives34347 = false; var SetTimeOutPeriods34347 = (Math.abs(CountSteppers34347)-1)*1000 + 990; puti(BackColors34347, ForeColors34347); var dthens34347 = new Date(TargetDates34347); var dnows34347 = new Date("10/26/2026 1:58:48 PM"); if(CountSteppers34347>0) ddiffs34347 = new Date(dnows34347-dthens34347); else ddiffs34347 = new Date(dthens34347-dnows34347); gsecss34347 = Math.floor(ddiffs34347.valueOf()/1000); CountBacks34347(gsecss34347);