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 (LeadingZeros33140 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33140(secs) { if (secs < 0) { document.getElementById("cntdwns33140").innerHTML = FinishMessages33140; return; } DisplayStrs33140 = DisplayFormats33140.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33140 = DisplayStrs33140.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33140 = DisplayStrs33140.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33140 = DisplayStrs33140.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33140").innerHTML = DisplayStrs33140; if (CountActives33140) //alert(SetTimeOutPeriods33140); setTimeout("CountBacks33140(" + (secs+CountSteppers33140) + ")", SetTimeOutPeriods33140); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33140)=="undefined") BackColors33140 = ""; if (typeof(ForeColors33140)=="undefined") ForeColors33140= "white"; if (typeof(TargetDates33140)=="undefined") TargetDates33140 = "11/28/2025 10:00:00 PM"; if (typeof(DisplayFormats33140)=="undefined") DisplayFormats33140 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33140)=="undefined") CountActives33140 = true; if (typeof(FinishMessages33140)=="undefined") FinishMessages33140 = ""; if (typeof(CountSteppers33140)!="number") CountSteppers33140 = -1; if (typeof(LeadingZeros33140)=="undefined") LeadingZeros33140 = true; CountSteppers33140 = Math.ceil(CountSteppers33140); if (CountSteppers33140 == 0) CountActives33140 = false; var SetTimeOutPeriods33140 = (Math.abs(CountSteppers33140)-1)*1000 + 990; puti(BackColors33140, ForeColors33140); var dthens33140 = new Date(TargetDates33140); var dnows33140 = new Date("11/26/2025 5:14:10 AM"); if(CountSteppers33140>0) ddiffs33140 = new Date(dnows33140-dthens33140); else ddiffs33140 = new Date(dthens33140-dnows33140); gsecss33140 = Math.floor(ddiffs33140.valueOf()/1000); CountBacks33140(gsecss33140);