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 (LeadingZeros34307 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34307(secs) { if (secs < 0) { document.getElementById("cntdwns34307").innerHTML = FinishMessages34307; return; } DisplayStrs34307 = DisplayFormats34307.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34307 = DisplayStrs34307.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34307 = DisplayStrs34307.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34307 = DisplayStrs34307.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34307").innerHTML = DisplayStrs34307; if (CountActives34307) //alert(SetTimeOutPeriods34307); setTimeout("CountBacks34307(" + (secs+CountSteppers34307) + ")", SetTimeOutPeriods34307); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34307)=="undefined") BackColors34307 = ""; if (typeof(ForeColors34307)=="undefined") ForeColors34307= "white"; if (typeof(TargetDates34307)=="undefined") TargetDates34307 = "11/24/2026 12:00:00 PM"; if (typeof(DisplayFormats34307)=="undefined") DisplayFormats34307 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34307)=="undefined") CountActives34307 = true; if (typeof(FinishMessages34307)=="undefined") FinishMessages34307 = ""; if (typeof(CountSteppers34307)!="number") CountSteppers34307 = -1; if (typeof(LeadingZeros34307)=="undefined") LeadingZeros34307 = true; CountSteppers34307 = Math.ceil(CountSteppers34307); if (CountSteppers34307 == 0) CountActives34307 = false; var SetTimeOutPeriods34307 = (Math.abs(CountSteppers34307)-1)*1000 + 990; puti(BackColors34307, ForeColors34307); var dthens34307 = new Date(TargetDates34307); var dnows34307 = new Date("11/22/2026 1:58:46 PM"); if(CountSteppers34307>0) ddiffs34307 = new Date(dnows34307-dthens34307); else ddiffs34307 = new Date(dthens34307-dnows34307); gsecss34307 = Math.floor(ddiffs34307.valueOf()/1000); CountBacks34307(gsecss34307);