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 (LeadingZeros33097 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33097(secs) { if (secs < 0) { document.getElementById("cntdwns33097").innerHTML = FinishMessages33097; return; } DisplayStrs33097 = DisplayFormats33097.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33097 = DisplayStrs33097.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33097 = DisplayStrs33097.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33097 = DisplayStrs33097.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33097").innerHTML = DisplayStrs33097; if (CountActives33097) //alert(SetTimeOutPeriods33097); setTimeout("CountBacks33097(" + (secs+CountSteppers33097) + ")", SetTimeOutPeriods33097); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33097)=="undefined") BackColors33097 = ""; if (typeof(ForeColors33097)=="undefined") ForeColors33097= "white"; if (typeof(TargetDates33097)=="undefined") TargetDates33097 = "11/26/2025 10:00:00 PM"; if (typeof(DisplayFormats33097)=="undefined") DisplayFormats33097 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33097)=="undefined") CountActives33097 = true; if (typeof(FinishMessages33097)=="undefined") FinishMessages33097 = ""; if (typeof(CountSteppers33097)!="number") CountSteppers33097 = -1; if (typeof(LeadingZeros33097)=="undefined") LeadingZeros33097 = true; CountSteppers33097 = Math.ceil(CountSteppers33097); if (CountSteppers33097 == 0) CountActives33097 = false; var SetTimeOutPeriods33097 = (Math.abs(CountSteppers33097)-1)*1000 + 990; puti(BackColors33097, ForeColors33097); var dthens33097 = new Date(TargetDates33097); var dnows33097 = new Date("11/24/2025 3:17:43 PM"); if(CountSteppers33097>0) ddiffs33097 = new Date(dnows33097-dthens33097); else ddiffs33097 = new Date(dthens33097-dnows33097); gsecss33097 = Math.floor(ddiffs33097.valueOf()/1000); CountBacks33097(gsecss33097);