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 (LeadingZeros33131 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33131(secs) { if (secs < 0) { document.getElementById("cntdwns33131").innerHTML = FinishMessages33131; return; } DisplayStrs33131 = DisplayFormats33131.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33131 = DisplayStrs33131.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33131 = DisplayStrs33131.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33131 = DisplayStrs33131.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33131").innerHTML = DisplayStrs33131; if (CountActives33131) //alert(SetTimeOutPeriods33131); setTimeout("CountBacks33131(" + (secs+CountSteppers33131) + ")", SetTimeOutPeriods33131); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33131)=="undefined") BackColors33131 = ""; if (typeof(ForeColors33131)=="undefined") ForeColors33131= "white"; if (typeof(TargetDates33131)=="undefined") TargetDates33131 = "12/20/2025 10:00:00 PM"; if (typeof(DisplayFormats33131)=="undefined") DisplayFormats33131 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33131)=="undefined") CountActives33131 = true; if (typeof(FinishMessages33131)=="undefined") FinishMessages33131 = ""; if (typeof(CountSteppers33131)!="number") CountSteppers33131 = -1; if (typeof(LeadingZeros33131)=="undefined") LeadingZeros33131 = true; CountSteppers33131 = Math.ceil(CountSteppers33131); if (CountSteppers33131 == 0) CountActives33131 = false; var SetTimeOutPeriods33131 = (Math.abs(CountSteppers33131)-1)*1000 + 990; puti(BackColors33131, ForeColors33131); var dthens33131 = new Date(TargetDates33131); var dnows33131 = new Date("12/18/2025 9:37:54 PM"); if(CountSteppers33131>0) ddiffs33131 = new Date(dnows33131-dthens33131); else ddiffs33131 = new Date(dthens33131-dnows33131); gsecss33131 = Math.floor(ddiffs33131.valueOf()/1000); CountBacks33131(gsecss33131);