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 (LeadingZeros33137 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33137(secs) { if (secs < 0) { document.getElementById("cntdwns33137").innerHTML = FinishMessages33137; return; } DisplayStrs33137 = DisplayFormats33137.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33137 = DisplayStrs33137.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33137 = DisplayStrs33137.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33137 = DisplayStrs33137.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33137").innerHTML = DisplayStrs33137; if (CountActives33137) //alert(SetTimeOutPeriods33137); setTimeout("CountBacks33137(" + (secs+CountSteppers33137) + ")", SetTimeOutPeriods33137); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33137)=="undefined") BackColors33137 = ""; if (typeof(ForeColors33137)=="undefined") ForeColors33137= "white"; if (typeof(TargetDates33137)=="undefined") TargetDates33137 = "11/28/2025 10:00:00 PM"; if (typeof(DisplayFormats33137)=="undefined") DisplayFormats33137 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33137)=="undefined") CountActives33137 = true; if (typeof(FinishMessages33137)=="undefined") FinishMessages33137 = ""; if (typeof(CountSteppers33137)!="number") CountSteppers33137 = -1; if (typeof(LeadingZeros33137)=="undefined") LeadingZeros33137 = true; CountSteppers33137 = Math.ceil(CountSteppers33137); if (CountSteppers33137 == 0) CountActives33137 = false; var SetTimeOutPeriods33137 = (Math.abs(CountSteppers33137)-1)*1000 + 990; puti(BackColors33137, ForeColors33137); var dthens33137 = new Date(TargetDates33137); var dnows33137 = new Date("11/26/2025 5:14:36 AM"); if(CountSteppers33137>0) ddiffs33137 = new Date(dnows33137-dthens33137); else ddiffs33137 = new Date(dthens33137-dnows33137); gsecss33137 = Math.floor(ddiffs33137.valueOf()/1000); CountBacks33137(gsecss33137);