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 (LeadingZeros33172 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33172(secs) { if (secs < 0) { document.getElementById("cntdwns33172").innerHTML = FinishMessages33172; return; } DisplayStrs33172 = DisplayFormats33172.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33172 = DisplayStrs33172.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33172 = DisplayStrs33172.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33172 = DisplayStrs33172.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33172").innerHTML = DisplayStrs33172; if (CountActives33172) //alert(SetTimeOutPeriods33172); setTimeout("CountBacks33172(" + (secs+CountSteppers33172) + ")", SetTimeOutPeriods33172); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33172)=="undefined") BackColors33172 = ""; if (typeof(ForeColors33172)=="undefined") ForeColors33172= "white"; if (typeof(TargetDates33172)=="undefined") TargetDates33172 = "11/30/2025 10:00:00 PM"; if (typeof(DisplayFormats33172)=="undefined") DisplayFormats33172 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33172)=="undefined") CountActives33172 = true; if (typeof(FinishMessages33172)=="undefined") FinishMessages33172 = ""; if (typeof(CountSteppers33172)!="number") CountSteppers33172 = -1; if (typeof(LeadingZeros33172)=="undefined") LeadingZeros33172 = true; CountSteppers33172 = Math.ceil(CountSteppers33172); if (CountSteppers33172 == 0) CountActives33172 = false; var SetTimeOutPeriods33172 = (Math.abs(CountSteppers33172)-1)*1000 + 990; puti(BackColors33172, ForeColors33172); var dthens33172 = new Date(TargetDates33172); var dnows33172 = new Date("11/27/2025 1:39:41 PM"); if(CountSteppers33172>0) ddiffs33172 = new Date(dnows33172-dthens33172); else ddiffs33172 = new Date(dthens33172-dnows33172); gsecss33172 = Math.floor(ddiffs33172.valueOf()/1000); CountBacks33172(gsecss33172);