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 (LeadingZeros33179 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33179(secs) { if (secs < 0) { document.getElementById("cntdwns33179").innerHTML = FinishMessages33179; return; } DisplayStrs33179 = DisplayFormats33179.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33179 = DisplayStrs33179.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33179 = DisplayStrs33179.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33179 = DisplayStrs33179.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33179").innerHTML = DisplayStrs33179; if (CountActives33179) //alert(SetTimeOutPeriods33179); setTimeout("CountBacks33179(" + (secs+CountSteppers33179) + ")", SetTimeOutPeriods33179); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33179)=="undefined") BackColors33179 = ""; if (typeof(ForeColors33179)=="undefined") ForeColors33179= "white"; if (typeof(TargetDates33179)=="undefined") TargetDates33179 = "12/01/2025 10:00:00 PM"; if (typeof(DisplayFormats33179)=="undefined") DisplayFormats33179 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33179)=="undefined") CountActives33179 = true; if (typeof(FinishMessages33179)=="undefined") FinishMessages33179 = ""; if (typeof(CountSteppers33179)!="number") CountSteppers33179 = -1; if (typeof(LeadingZeros33179)=="undefined") LeadingZeros33179 = true; CountSteppers33179 = Math.ceil(CountSteppers33179); if (CountSteppers33179 == 0) CountActives33179 = false; var SetTimeOutPeriods33179 = (Math.abs(CountSteppers33179)-1)*1000 + 990; puti(BackColors33179, ForeColors33179); var dthens33179 = new Date(TargetDates33179); var dnows33179 = new Date("11/28/2025 5:07:40 PM"); if(CountSteppers33179>0) ddiffs33179 = new Date(dnows33179-dthens33179); else ddiffs33179 = new Date(dthens33179-dnows33179); gsecss33179 = Math.floor(ddiffs33179.valueOf()/1000); CountBacks33179(gsecss33179);