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 (LeadingZeros33143 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33143(secs) { if (secs < 0) { document.getElementById("cntdwns33143").innerHTML = FinishMessages33143; return; } DisplayStrs33143 = DisplayFormats33143.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33143 = DisplayStrs33143.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33143 = DisplayStrs33143.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33143 = DisplayStrs33143.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33143").innerHTML = DisplayStrs33143; if (CountActives33143) //alert(SetTimeOutPeriods33143); setTimeout("CountBacks33143(" + (secs+CountSteppers33143) + ")", SetTimeOutPeriods33143); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33143)=="undefined") BackColors33143 = ""; if (typeof(ForeColors33143)=="undefined") ForeColors33143= "white"; if (typeof(TargetDates33143)=="undefined") TargetDates33143 = "12/22/2025 10:00:00 PM"; if (typeof(DisplayFormats33143)=="undefined") DisplayFormats33143 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33143)=="undefined") CountActives33143 = true; if (typeof(FinishMessages33143)=="undefined") FinishMessages33143 = ""; if (typeof(CountSteppers33143)!="number") CountSteppers33143 = -1; if (typeof(LeadingZeros33143)=="undefined") LeadingZeros33143 = true; CountSteppers33143 = Math.ceil(CountSteppers33143); if (CountSteppers33143 == 0) CountActives33143 = false; var SetTimeOutPeriods33143 = (Math.abs(CountSteppers33143)-1)*1000 + 990; puti(BackColors33143, ForeColors33143); var dthens33143 = new Date(TargetDates33143); var dnows33143 = new Date("12/20/2025 12:45:31 PM"); if(CountSteppers33143>0) ddiffs33143 = new Date(dnows33143-dthens33143); else ddiffs33143 = new Date(dthens33143-dnows33143); gsecss33143 = Math.floor(ddiffs33143.valueOf()/1000); CountBacks33143(gsecss33143);