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 (LeadingZeros34306 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34306(secs) { if (secs < 0) { document.getElementById("cntdwns34306").innerHTML = FinishMessages34306; return; } DisplayStrs34306 = DisplayFormats34306.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34306 = DisplayStrs34306.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34306 = DisplayStrs34306.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34306 = DisplayStrs34306.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34306").innerHTML = DisplayStrs34306; if (CountActives34306) //alert(SetTimeOutPeriods34306); setTimeout("CountBacks34306(" + (secs+CountSteppers34306) + ")", SetTimeOutPeriods34306); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34306)=="undefined") BackColors34306 = ""; if (typeof(ForeColors34306)=="undefined") ForeColors34306= "white"; if (typeof(TargetDates34306)=="undefined") TargetDates34306 = "11/25/2026 12:00:00 PM"; if (typeof(DisplayFormats34306)=="undefined") DisplayFormats34306 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34306)=="undefined") CountActives34306 = true; if (typeof(FinishMessages34306)=="undefined") FinishMessages34306 = ""; if (typeof(CountSteppers34306)!="number") CountSteppers34306 = -1; if (typeof(LeadingZeros34306)=="undefined") LeadingZeros34306 = true; CountSteppers34306 = Math.ceil(CountSteppers34306); if (CountSteppers34306 == 0) CountActives34306 = false; var SetTimeOutPeriods34306 = (Math.abs(CountSteppers34306)-1)*1000 + 990; puti(BackColors34306, ForeColors34306); var dthens34306 = new Date(TargetDates34306); var dnows34306 = new Date("11/22/2026 1:58:46 PM"); if(CountSteppers34306>0) ddiffs34306 = new Date(dnows34306-dthens34306); else ddiffs34306 = new Date(dthens34306-dnows34306); gsecss34306 = Math.floor(ddiffs34306.valueOf()/1000); CountBacks34306(gsecss34306);