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 (LeadingZeros33162 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33162(secs) { if (secs < 0) { document.getElementById("cntdwns33162").innerHTML = FinishMessages33162; return; } DisplayStrs33162 = DisplayFormats33162.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33162 = DisplayStrs33162.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33162 = DisplayStrs33162.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33162 = DisplayStrs33162.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33162").innerHTML = DisplayStrs33162; if (CountActives33162) //alert(SetTimeOutPeriods33162); setTimeout("CountBacks33162(" + (secs+CountSteppers33162) + ")", SetTimeOutPeriods33162); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33162)=="undefined") BackColors33162 = ""; if (typeof(ForeColors33162)=="undefined") ForeColors33162= "white"; if (typeof(TargetDates33162)=="undefined") TargetDates33162 = "11/29/2025 10:00:00 PM"; if (typeof(DisplayFormats33162)=="undefined") DisplayFormats33162 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33162)=="undefined") CountActives33162 = true; if (typeof(FinishMessages33162)=="undefined") FinishMessages33162 = ""; if (typeof(CountSteppers33162)!="number") CountSteppers33162 = -1; if (typeof(LeadingZeros33162)=="undefined") LeadingZeros33162 = true; CountSteppers33162 = Math.ceil(CountSteppers33162); if (CountSteppers33162 == 0) CountActives33162 = false; var SetTimeOutPeriods33162 = (Math.abs(CountSteppers33162)-1)*1000 + 990; puti(BackColors33162, ForeColors33162); var dthens33162 = new Date(TargetDates33162); var dnows33162 = new Date("11/26/2025 8:45:43 PM"); if(CountSteppers33162>0) ddiffs33162 = new Date(dnows33162-dthens33162); else ddiffs33162 = new Date(dthens33162-dnows33162); gsecss33162 = Math.floor(ddiffs33162.valueOf()/1000); CountBacks33162(gsecss33162);