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 (LeadingZeros33180 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33180(secs) { if (secs < 0) { document.getElementById("cntdwns33180").innerHTML = FinishMessages33180; return; } DisplayStrs33180 = DisplayFormats33180.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33180 = DisplayStrs33180.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33180 = DisplayStrs33180.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33180 = DisplayStrs33180.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33180").innerHTML = DisplayStrs33180; if (CountActives33180) //alert(SetTimeOutPeriods33180); setTimeout("CountBacks33180(" + (secs+CountSteppers33180) + ")", SetTimeOutPeriods33180); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33180)=="undefined") BackColors33180 = ""; if (typeof(ForeColors33180)=="undefined") ForeColors33180= "white"; if (typeof(TargetDates33180)=="undefined") TargetDates33180 = "12/01/2025 10:00:00 PM"; if (typeof(DisplayFormats33180)=="undefined") DisplayFormats33180 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33180)=="undefined") CountActives33180 = true; if (typeof(FinishMessages33180)=="undefined") FinishMessages33180 = ""; if (typeof(CountSteppers33180)!="number") CountSteppers33180 = -1; if (typeof(LeadingZeros33180)=="undefined") LeadingZeros33180 = true; CountSteppers33180 = Math.ceil(CountSteppers33180); if (CountSteppers33180 == 0) CountActives33180 = false; var SetTimeOutPeriods33180 = (Math.abs(CountSteppers33180)-1)*1000 + 990; puti(BackColors33180, ForeColors33180); var dthens33180 = new Date(TargetDates33180); var dnows33180 = new Date("11/28/2025 5:07:41 PM"); if(CountSteppers33180>0) ddiffs33180 = new Date(dnows33180-dthens33180); else ddiffs33180 = new Date(dthens33180-dnows33180); gsecss33180 = Math.floor(ddiffs33180.valueOf()/1000); CountBacks33180(gsecss33180);