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 (LeadingZeros33141 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33141(secs) { if (secs < 0) { document.getElementById("cntdwns33141").innerHTML = FinishMessages33141; return; } DisplayStrs33141 = DisplayFormats33141.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33141 = DisplayStrs33141.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33141 = DisplayStrs33141.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33141 = DisplayStrs33141.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33141").innerHTML = DisplayStrs33141; if (CountActives33141) //alert(SetTimeOutPeriods33141); setTimeout("CountBacks33141(" + (secs+CountSteppers33141) + ")", SetTimeOutPeriods33141); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33141)=="undefined") BackColors33141 = ""; if (typeof(ForeColors33141)=="undefined") ForeColors33141= "white"; if (typeof(TargetDates33141)=="undefined") TargetDates33141 = "11/27/2025 10:00:00 PM"; if (typeof(DisplayFormats33141)=="undefined") DisplayFormats33141 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33141)=="undefined") CountActives33141 = true; if (typeof(FinishMessages33141)=="undefined") FinishMessages33141 = ""; if (typeof(CountSteppers33141)!="number") CountSteppers33141 = -1; if (typeof(LeadingZeros33141)=="undefined") LeadingZeros33141 = true; CountSteppers33141 = Math.ceil(CountSteppers33141); if (CountSteppers33141 == 0) CountActives33141 = false; var SetTimeOutPeriods33141 = (Math.abs(CountSteppers33141)-1)*1000 + 990; puti(BackColors33141, ForeColors33141); var dthens33141 = new Date(TargetDates33141); var dnows33141 = new Date("11/24/2025 3:17:43 PM"); if(CountSteppers33141>0) ddiffs33141 = new Date(dnows33141-dthens33141); else ddiffs33141 = new Date(dthens33141-dnows33141); gsecss33141 = Math.floor(ddiffs33141.valueOf()/1000); CountBacks33141(gsecss33141);