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 (LeadingZeros34141 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34141(secs) { if (secs < 0) { document.getElementById("cntdwns34141").innerHTML = FinishMessages34141; return; } DisplayStrs34141 = DisplayFormats34141.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34141 = DisplayStrs34141.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34141 = DisplayStrs34141.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34141 = DisplayStrs34141.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34141").innerHTML = DisplayStrs34141; if (CountActives34141) //alert(SetTimeOutPeriods34141); setTimeout("CountBacks34141(" + (secs+CountSteppers34141) + ")", SetTimeOutPeriods34141); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34141)=="undefined") BackColors34141 = ""; if (typeof(ForeColors34141)=="undefined") ForeColors34141= "white"; if (typeof(TargetDates34141)=="undefined") TargetDates34141 = "09/24/2026 11:00:00 PM"; if (typeof(DisplayFormats34141)=="undefined") DisplayFormats34141 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34141)=="undefined") CountActives34141 = true; if (typeof(FinishMessages34141)=="undefined") FinishMessages34141 = ""; if (typeof(CountSteppers34141)!="number") CountSteppers34141 = -1; if (typeof(LeadingZeros34141)=="undefined") LeadingZeros34141 = true; CountSteppers34141 = Math.ceil(CountSteppers34141); if (CountSteppers34141 == 0) CountActives34141 = false; var SetTimeOutPeriods34141 = (Math.abs(CountSteppers34141)-1)*1000 + 990; puti(BackColors34141, ForeColors34141); var dthens34141 = new Date(TargetDates34141); var dnows34141 = new Date("09/22/2026 4:40:17 PM"); if(CountSteppers34141>0) ddiffs34141 = new Date(dnows34141-dthens34141); else ddiffs34141 = new Date(dthens34141-dnows34141); gsecss34141 = Math.floor(ddiffs34141.valueOf()/1000); CountBacks34141(gsecss34141);