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 (LeadingZeros33161 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33161(secs) { if (secs < 0) { document.getElementById("cntdwns33161").innerHTML = FinishMessages33161; return; } DisplayStrs33161 = DisplayFormats33161.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33161 = DisplayStrs33161.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33161 = DisplayStrs33161.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33161 = DisplayStrs33161.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33161").innerHTML = DisplayStrs33161; if (CountActives33161) //alert(SetTimeOutPeriods33161); setTimeout("CountBacks33161(" + (secs+CountSteppers33161) + ")", SetTimeOutPeriods33161); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33161)=="undefined") BackColors33161 = ""; if (typeof(ForeColors33161)=="undefined") ForeColors33161= "white"; if (typeof(TargetDates33161)=="undefined") TargetDates33161 = "11/29/2025 10:00:00 PM"; if (typeof(DisplayFormats33161)=="undefined") DisplayFormats33161 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33161)=="undefined") CountActives33161 = true; if (typeof(FinishMessages33161)=="undefined") FinishMessages33161 = ""; if (typeof(CountSteppers33161)!="number") CountSteppers33161 = -1; if (typeof(LeadingZeros33161)=="undefined") LeadingZeros33161 = true; CountSteppers33161 = Math.ceil(CountSteppers33161); if (CountSteppers33161 == 0) CountActives33161 = false; var SetTimeOutPeriods33161 = (Math.abs(CountSteppers33161)-1)*1000 + 990; puti(BackColors33161, ForeColors33161); var dthens33161 = new Date(TargetDates33161); var dnows33161 = new Date("11/26/2025 8:45:42 PM"); if(CountSteppers33161>0) ddiffs33161 = new Date(dnows33161-dthens33161); else ddiffs33161 = new Date(dthens33161-dnows33161); gsecss33161 = Math.floor(ddiffs33161.valueOf()/1000); CountBacks33161(gsecss33161);