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 (LeadingZeros33381 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33381(secs) { if (secs < 0) { document.getElementById("cntdwns33381").innerHTML = FinishMessages33381; return; } DisplayStrs33381 = DisplayFormats33381.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33381 = DisplayStrs33381.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33381 = DisplayStrs33381.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33381 = DisplayStrs33381.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33381").innerHTML = DisplayStrs33381; if (CountActives33381) //alert(SetTimeOutPeriods33381); setTimeout("CountBacks33381(" + (secs+CountSteppers33381) + ")", SetTimeOutPeriods33381); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33381)=="undefined") BackColors33381 = ""; if (typeof(ForeColors33381)=="undefined") ForeColors33381= "white"; if (typeof(TargetDates33381)=="undefined") TargetDates33381 = "02/27/2026 10:00:00 PM"; if (typeof(DisplayFormats33381)=="undefined") DisplayFormats33381 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33381)=="undefined") CountActives33381 = true; if (typeof(FinishMessages33381)=="undefined") FinishMessages33381 = ""; if (typeof(CountSteppers33381)!="number") CountSteppers33381 = -1; if (typeof(LeadingZeros33381)=="undefined") LeadingZeros33381 = true; CountSteppers33381 = Math.ceil(CountSteppers33381); if (CountSteppers33381 == 0) CountActives33381 = false; var SetTimeOutPeriods33381 = (Math.abs(CountSteppers33381)-1)*1000 + 990; puti(BackColors33381, ForeColors33381); var dthens33381 = new Date(TargetDates33381); var dnows33381 = new Date("02/24/2026 2:30:27 AM"); if(CountSteppers33381>0) ddiffs33381 = new Date(dnows33381-dthens33381); else ddiffs33381 = new Date(dthens33381-dnows33381); gsecss33381 = Math.floor(ddiffs33381.valueOf()/1000); CountBacks33381(gsecss33381);