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 (LeadingZeros34246 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34246(secs) { if (secs < 0) { document.getElementById("cntdwns34246").innerHTML = FinishMessages34246; return; } DisplayStrs34246 = DisplayFormats34246.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34246 = DisplayStrs34246.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34246 = DisplayStrs34246.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34246 = DisplayStrs34246.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34246").innerHTML = DisplayStrs34246; if (CountActives34246) //alert(SetTimeOutPeriods34246); setTimeout("CountBacks34246(" + (secs+CountSteppers34246) + ")", SetTimeOutPeriods34246); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34246)=="undefined") BackColors34246 = ""; if (typeof(ForeColors34246)=="undefined") ForeColors34246= "white"; if (typeof(TargetDates34246)=="undefined") TargetDates34246 = "11/16/2026 9:00:00 AM"; if (typeof(DisplayFormats34246)=="undefined") DisplayFormats34246 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34246)=="undefined") CountActives34246 = true; if (typeof(FinishMessages34246)=="undefined") FinishMessages34246 = ""; if (typeof(CountSteppers34246)!="number") CountSteppers34246 = -1; if (typeof(LeadingZeros34246)=="undefined") LeadingZeros34246 = true; CountSteppers34246 = Math.ceil(CountSteppers34246); if (CountSteppers34246 == 0) CountActives34246 = false; var SetTimeOutPeriods34246 = (Math.abs(CountSteppers34246)-1)*1000 + 990; puti(BackColors34246, ForeColors34246); var dthens34246 = new Date(TargetDates34246); var dnows34246 = new Date("09/27/2026 2:46:18 AM"); if(CountSteppers34246>0) ddiffs34246 = new Date(dnows34246-dthens34246); else ddiffs34246 = new Date(dthens34246-dnows34246); gsecss34246 = Math.floor(ddiffs34246.valueOf()/1000); CountBacks34246(gsecss34246);