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 (LeadingZeros34211 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34211(secs) { if (secs < 0) { document.getElementById("cntdwns34211").innerHTML = FinishMessages34211; return; } DisplayStrs34211 = DisplayFormats34211.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34211 = DisplayStrs34211.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34211 = DisplayStrs34211.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34211 = DisplayStrs34211.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34211").innerHTML = DisplayStrs34211; if (CountActives34211) //alert(SetTimeOutPeriods34211); setTimeout("CountBacks34211(" + (secs+CountSteppers34211) + ")", SetTimeOutPeriods34211); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34211)=="undefined") BackColors34211 = ""; if (typeof(ForeColors34211)=="undefined") ForeColors34211= "white"; if (typeof(TargetDates34211)=="undefined") TargetDates34211 = "11/10/2026 10:00:00 AM"; if (typeof(DisplayFormats34211)=="undefined") DisplayFormats34211 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34211)=="undefined") CountActives34211 = true; if (typeof(FinishMessages34211)=="undefined") FinishMessages34211 = ""; if (typeof(CountSteppers34211)!="number") CountSteppers34211 = -1; if (typeof(LeadingZeros34211)=="undefined") LeadingZeros34211 = true; CountSteppers34211 = Math.ceil(CountSteppers34211); if (CountSteppers34211 == 0) CountActives34211 = false; var SetTimeOutPeriods34211 = (Math.abs(CountSteppers34211)-1)*1000 + 990; puti(BackColors34211, ForeColors34211); var dthens34211 = new Date(TargetDates34211); var dnows34211 = new Date("11/23/2026 3:08:45 PM"); if(CountSteppers34211>0) ddiffs34211 = new Date(dnows34211-dthens34211); else ddiffs34211 = new Date(dthens34211-dnows34211); gsecss34211 = Math.floor(ddiffs34211.valueOf()/1000); CountBacks34211(gsecss34211);