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 (LeadingZeros34410 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34410(secs) { if (secs < 0) { document.getElementById("cntdwns34410").innerHTML = FinishMessages34410; return; } DisplayStrs34410 = DisplayFormats34410.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34410 = DisplayStrs34410.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34410 = DisplayStrs34410.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34410 = DisplayStrs34410.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34410").innerHTML = DisplayStrs34410; if (CountActives34410) //alert(SetTimeOutPeriods34410); setTimeout("CountBacks34410(" + (secs+CountSteppers34410) + ")", SetTimeOutPeriods34410); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34410)=="undefined") BackColors34410 = ""; if (typeof(ForeColors34410)=="undefined") ForeColors34410= "white"; if (typeof(TargetDates34410)=="undefined") TargetDates34410 = "11/23/2026 11:00:00 PM"; if (typeof(DisplayFormats34410)=="undefined") DisplayFormats34410 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34410)=="undefined") CountActives34410 = true; if (typeof(FinishMessages34410)=="undefined") FinishMessages34410 = ""; if (typeof(CountSteppers34410)!="number") CountSteppers34410 = -1; if (typeof(LeadingZeros34410)=="undefined") LeadingZeros34410 = true; CountSteppers34410 = Math.ceil(CountSteppers34410); if (CountSteppers34410 == 0) CountActives34410 = false; var SetTimeOutPeriods34410 = (Math.abs(CountSteppers34410)-1)*1000 + 990; puti(BackColors34410, ForeColors34410); var dthens34410 = new Date(TargetDates34410); var dnows34410 = new Date("11/21/2026 10:48:36 AM"); if(CountSteppers34410>0) ddiffs34410 = new Date(dnows34410-dthens34410); else ddiffs34410 = new Date(dthens34410-dnows34410); gsecss34410 = Math.floor(ddiffs34410.valueOf()/1000); CountBacks34410(gsecss34410);