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 (LeadingZeros34222 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34222(secs) { if (secs < 0) { document.getElementById("cntdwns34222").innerHTML = FinishMessages34222; return; } DisplayStrs34222 = DisplayFormats34222.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34222 = DisplayStrs34222.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34222 = DisplayStrs34222.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34222 = DisplayStrs34222.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34222").innerHTML = DisplayStrs34222; if (CountActives34222) //alert(SetTimeOutPeriods34222); setTimeout("CountBacks34222(" + (secs+CountSteppers34222) + ")", SetTimeOutPeriods34222); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34222)=="undefined") BackColors34222 = ""; if (typeof(ForeColors34222)=="undefined") ForeColors34222= "white"; if (typeof(TargetDates34222)=="undefined") TargetDates34222 = "11/13/2026 12:00:00 PM"; if (typeof(DisplayFormats34222)=="undefined") DisplayFormats34222 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34222)=="undefined") CountActives34222 = true; if (typeof(FinishMessages34222)=="undefined") FinishMessages34222 = ""; if (typeof(CountSteppers34222)!="number") CountSteppers34222 = -1; if (typeof(LeadingZeros34222)=="undefined") LeadingZeros34222 = true; CountSteppers34222 = Math.ceil(CountSteppers34222); if (CountSteppers34222 == 0) CountActives34222 = false; var SetTimeOutPeriods34222 = (Math.abs(CountSteppers34222)-1)*1000 + 990; puti(BackColors34222, ForeColors34222); var dthens34222 = new Date(TargetDates34222); var dnows34222 = new Date("11/11/2026 4:05:28 AM"); if(CountSteppers34222>0) ddiffs34222 = new Date(dnows34222-dthens34222); else ddiffs34222 = new Date(dthens34222-dnows34222); gsecss34222 = Math.floor(ddiffs34222.valueOf()/1000); CountBacks34222(gsecss34222);