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 (LeadingZeros34417 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34417(secs) { if (secs < 0) { document.getElementById("cntdwns34417").innerHTML = FinishMessages34417; return; } DisplayStrs34417 = DisplayFormats34417.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34417 = DisplayStrs34417.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34417 = DisplayStrs34417.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34417 = DisplayStrs34417.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34417").innerHTML = DisplayStrs34417; if (CountActives34417) //alert(SetTimeOutPeriods34417); setTimeout("CountBacks34417(" + (secs+CountSteppers34417) + ")", SetTimeOutPeriods34417); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34417)=="undefined") BackColors34417 = ""; if (typeof(ForeColors34417)=="undefined") ForeColors34417= "white"; if (typeof(TargetDates34417)=="undefined") TargetDates34417 = "11/18/2026 11:00:00 PM"; if (typeof(DisplayFormats34417)=="undefined") DisplayFormats34417 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34417)=="undefined") CountActives34417 = true; if (typeof(FinishMessages34417)=="undefined") FinishMessages34417 = ""; if (typeof(CountSteppers34417)!="number") CountSteppers34417 = -1; if (typeof(LeadingZeros34417)=="undefined") LeadingZeros34417 = true; CountSteppers34417 = Math.ceil(CountSteppers34417); if (CountSteppers34417 == 0) CountActives34417 = false; var SetTimeOutPeriods34417 = (Math.abs(CountSteppers34417)-1)*1000 + 990; puti(BackColors34417, ForeColors34417); var dthens34417 = new Date(TargetDates34417); var dnows34417 = new Date("11/16/2026 4:05:38 AM"); if(CountSteppers34417>0) ddiffs34417 = new Date(dnows34417-dthens34417); else ddiffs34417 = new Date(dthens34417-dnows34417); gsecss34417 = Math.floor(ddiffs34417.valueOf()/1000); CountBacks34417(gsecss34417);