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 (LeadingZeros34445 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34445(secs) { if (secs < 0) { document.getElementById("cntdwns34445").innerHTML = FinishMessages34445; return; } DisplayStrs34445 = DisplayFormats34445.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34445 = DisplayStrs34445.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34445 = DisplayStrs34445.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34445 = DisplayStrs34445.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34445").innerHTML = DisplayStrs34445; if (CountActives34445) //alert(SetTimeOutPeriods34445); setTimeout("CountBacks34445(" + (secs+CountSteppers34445) + ")", SetTimeOutPeriods34445); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34445)=="undefined") BackColors34445 = ""; if (typeof(ForeColors34445)=="undefined") ForeColors34445= "white"; if (typeof(TargetDates34445)=="undefined") TargetDates34445 = "11/13/2026 11:00:00 PM"; if (typeof(DisplayFormats34445)=="undefined") DisplayFormats34445 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34445)=="undefined") CountActives34445 = true; if (typeof(FinishMessages34445)=="undefined") FinishMessages34445 = ""; if (typeof(CountSteppers34445)!="number") CountSteppers34445 = -1; if (typeof(LeadingZeros34445)=="undefined") LeadingZeros34445 = true; CountSteppers34445 = Math.ceil(CountSteppers34445); if (CountSteppers34445 == 0) CountActives34445 = false; var SetTimeOutPeriods34445 = (Math.abs(CountSteppers34445)-1)*1000 + 990; puti(BackColors34445, ForeColors34445); var dthens34445 = new Date(TargetDates34445); var dnows34445 = new Date("11/11/2026 5:04:38 PM"); if(CountSteppers34445>0) ddiffs34445 = new Date(dnows34445-dthens34445); else ddiffs34445 = new Date(dthens34445-dnows34445); gsecss34445 = Math.floor(ddiffs34445.valueOf()/1000); CountBacks34445(gsecss34445);