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 (LeadingZeros33167 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33167(secs) { if (secs < 0) { document.getElementById("cntdwns33167").innerHTML = FinishMessages33167; return; } DisplayStrs33167 = DisplayFormats33167.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33167 = DisplayStrs33167.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33167 = DisplayStrs33167.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33167 = DisplayStrs33167.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33167").innerHTML = DisplayStrs33167; if (CountActives33167) //alert(SetTimeOutPeriods33167); setTimeout("CountBacks33167(" + (secs+CountSteppers33167) + ")", SetTimeOutPeriods33167); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33167)=="undefined") BackColors33167 = ""; if (typeof(ForeColors33167)=="undefined") ForeColors33167= "white"; if (typeof(TargetDates33167)=="undefined") TargetDates33167 = "12/25/2025 10:00:00 PM"; if (typeof(DisplayFormats33167)=="undefined") DisplayFormats33167 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33167)=="undefined") CountActives33167 = true; if (typeof(FinishMessages33167)=="undefined") FinishMessages33167 = ""; if (typeof(CountSteppers33167)!="number") CountSteppers33167 = -1; if (typeof(LeadingZeros33167)=="undefined") LeadingZeros33167 = true; CountSteppers33167 = Math.ceil(CountSteppers33167); if (CountSteppers33167 == 0) CountActives33167 = false; var SetTimeOutPeriods33167 = (Math.abs(CountSteppers33167)-1)*1000 + 990; puti(BackColors33167, ForeColors33167); var dthens33167 = new Date(TargetDates33167); var dnows33167 = new Date("12/23/2025 10:20:07 PM"); if(CountSteppers33167>0) ddiffs33167 = new Date(dnows33167-dthens33167); else ddiffs33167 = new Date(dthens33167-dnows33167); gsecss33167 = Math.floor(ddiffs33167.valueOf()/1000); CountBacks33167(gsecss33167);