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 (LeadingZeros33362 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33362(secs) { if (secs < 0) { document.getElementById("cntdwns33362").innerHTML = FinishMessages33362; return; } DisplayStrs33362 = DisplayFormats33362.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33362 = DisplayStrs33362.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33362 = DisplayStrs33362.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33362 = DisplayStrs33362.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33362").innerHTML = DisplayStrs33362; if (CountActives33362) //alert(SetTimeOutPeriods33362); setTimeout("CountBacks33362(" + (secs+CountSteppers33362) + ")", SetTimeOutPeriods33362); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33362)=="undefined") BackColors33362 = ""; if (typeof(ForeColors33362)=="undefined") ForeColors33362= "white"; if (typeof(TargetDates33362)=="undefined") TargetDates33362 = "01/15/2026 10:00:00 PM"; if (typeof(DisplayFormats33362)=="undefined") DisplayFormats33362 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33362)=="undefined") CountActives33362 = true; if (typeof(FinishMessages33362)=="undefined") FinishMessages33362 = ""; if (typeof(CountSteppers33362)!="number") CountSteppers33362 = -1; if (typeof(LeadingZeros33362)=="undefined") LeadingZeros33362 = true; CountSteppers33362 = Math.ceil(CountSteppers33362); if (CountSteppers33362 == 0) CountActives33362 = false; var SetTimeOutPeriods33362 = (Math.abs(CountSteppers33362)-1)*1000 + 990; puti(BackColors33362, ForeColors33362); var dthens33362 = new Date(TargetDates33362); var dnows33362 = new Date("01/15/2026 12:29:20 AM"); if(CountSteppers33362>0) ddiffs33362 = new Date(dnows33362-dthens33362); else ddiffs33362 = new Date(dthens33362-dnows33362); gsecss33362 = Math.floor(ddiffs33362.valueOf()/1000); CountBacks33362(gsecss33362);