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 (LeadingZeros34350 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34350(secs) { if (secs < 0) { document.getElementById("cntdwns34350").innerHTML = FinishMessages34350; return; } DisplayStrs34350 = DisplayFormats34350.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34350 = DisplayStrs34350.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34350 = DisplayStrs34350.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34350 = DisplayStrs34350.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34350").innerHTML = DisplayStrs34350; if (CountActives34350) //alert(SetTimeOutPeriods34350); setTimeout("CountBacks34350(" + (secs+CountSteppers34350) + ")", SetTimeOutPeriods34350); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34350)=="undefined") BackColors34350 = ""; if (typeof(ForeColors34350)=="undefined") ForeColors34350= "white"; if (typeof(TargetDates34350)=="undefined") TargetDates34350 = "10/28/2026 11:00:00 PM"; if (typeof(DisplayFormats34350)=="undefined") DisplayFormats34350 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34350)=="undefined") CountActives34350 = true; if (typeof(FinishMessages34350)=="undefined") FinishMessages34350 = ""; if (typeof(CountSteppers34350)!="number") CountSteppers34350 = -1; if (typeof(LeadingZeros34350)=="undefined") LeadingZeros34350 = true; CountSteppers34350 = Math.ceil(CountSteppers34350); if (CountSteppers34350 == 0) CountActives34350 = false; var SetTimeOutPeriods34350 = (Math.abs(CountSteppers34350)-1)*1000 + 990; puti(BackColors34350, ForeColors34350); var dthens34350 = new Date(TargetDates34350); var dnows34350 = new Date("10/27/2026 11:10:42 AM"); if(CountSteppers34350>0) ddiffs34350 = new Date(dnows34350-dthens34350); else ddiffs34350 = new Date(dthens34350-dnows34350); gsecss34350 = Math.floor(ddiffs34350.valueOf()/1000); CountBacks34350(gsecss34350);