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 (LeadingZeros33325 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33325(secs) { if (secs < 0) { document.getElementById("cntdwns33325").innerHTML = FinishMessages33325; return; } DisplayStrs33325 = DisplayFormats33325.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33325 = DisplayStrs33325.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33325 = DisplayStrs33325.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33325 = DisplayStrs33325.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33325").innerHTML = DisplayStrs33325; if (CountActives33325) //alert(SetTimeOutPeriods33325); setTimeout("CountBacks33325(" + (secs+CountSteppers33325) + ")", SetTimeOutPeriods33325); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33325)=="undefined") BackColors33325 = ""; if (typeof(ForeColors33325)=="undefined") ForeColors33325= "white"; if (typeof(TargetDates33325)=="undefined") TargetDates33325 = "01/11/2026 10:00:00 PM"; if (typeof(DisplayFormats33325)=="undefined") DisplayFormats33325 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33325)=="undefined") CountActives33325 = true; if (typeof(FinishMessages33325)=="undefined") FinishMessages33325 = ""; if (typeof(CountSteppers33325)!="number") CountSteppers33325 = -1; if (typeof(LeadingZeros33325)=="undefined") LeadingZeros33325 = true; CountSteppers33325 = Math.ceil(CountSteppers33325); if (CountSteppers33325 == 0) CountActives33325 = false; var SetTimeOutPeriods33325 = (Math.abs(CountSteppers33325)-1)*1000 + 990; puti(BackColors33325, ForeColors33325); var dthens33325 = new Date(TargetDates33325); var dnows33325 = new Date("01/10/2026 3:55:36 AM"); if(CountSteppers33325>0) ddiffs33325 = new Date(dnows33325-dthens33325); else ddiffs33325 = new Date(dthens33325-dnows33325); gsecss33325 = Math.floor(ddiffs33325.valueOf()/1000); CountBacks33325(gsecss33325);