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 (LeadingZeros33173 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33173(secs) { if (secs < 0) { document.getElementById("cntdwns33173").innerHTML = FinishMessages33173; return; } DisplayStrs33173 = DisplayFormats33173.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33173 = DisplayStrs33173.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33173 = DisplayStrs33173.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33173 = DisplayStrs33173.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33173").innerHTML = DisplayStrs33173; if (CountActives33173) //alert(SetTimeOutPeriods33173); setTimeout("CountBacks33173(" + (secs+CountSteppers33173) + ")", SetTimeOutPeriods33173); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33173)=="undefined") BackColors33173 = ""; if (typeof(ForeColors33173)=="undefined") ForeColors33173= "white"; if (typeof(TargetDates33173)=="undefined") TargetDates33173 = "11/30/2025 10:00:00 PM"; if (typeof(DisplayFormats33173)=="undefined") DisplayFormats33173 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33173)=="undefined") CountActives33173 = true; if (typeof(FinishMessages33173)=="undefined") FinishMessages33173 = ""; if (typeof(CountSteppers33173)!="number") CountSteppers33173 = -1; if (typeof(LeadingZeros33173)=="undefined") LeadingZeros33173 = true; CountSteppers33173 = Math.ceil(CountSteppers33173); if (CountSteppers33173 == 0) CountActives33173 = false; var SetTimeOutPeriods33173 = (Math.abs(CountSteppers33173)-1)*1000 + 990; puti(BackColors33173, ForeColors33173); var dthens33173 = new Date(TargetDates33173); var dnows33173 = new Date("11/27/2025 1:39:40 PM"); if(CountSteppers33173>0) ddiffs33173 = new Date(dnows33173-dthens33173); else ddiffs33173 = new Date(dthens33173-dnows33173); gsecss33173 = Math.floor(ddiffs33173.valueOf()/1000); CountBacks33173(gsecss33173);