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 (LeadingZeros33309 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33309(secs) { if (secs < 0) { document.getElementById("cntdwns33309").innerHTML = FinishMessages33309; return; } DisplayStrs33309 = DisplayFormats33309.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33309 = DisplayStrs33309.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33309 = DisplayStrs33309.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33309 = DisplayStrs33309.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33309").innerHTML = DisplayStrs33309; if (CountActives33309) //alert(SetTimeOutPeriods33309); setTimeout("CountBacks33309(" + (secs+CountSteppers33309) + ")", SetTimeOutPeriods33309); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33309)=="undefined") BackColors33309 = ""; if (typeof(ForeColors33309)=="undefined") ForeColors33309= "white"; if (typeof(TargetDates33309)=="undefined") TargetDates33309 = "01/21/2026 10:00:00 PM"; if (typeof(DisplayFormats33309)=="undefined") DisplayFormats33309 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33309)=="undefined") CountActives33309 = true; if (typeof(FinishMessages33309)=="undefined") FinishMessages33309 = ""; if (typeof(CountSteppers33309)!="number") CountSteppers33309 = -1; if (typeof(LeadingZeros33309)=="undefined") LeadingZeros33309 = true; CountSteppers33309 = Math.ceil(CountSteppers33309); if (CountSteppers33309 == 0) CountActives33309 = false; var SetTimeOutPeriods33309 = (Math.abs(CountSteppers33309)-1)*1000 + 990; puti(BackColors33309, ForeColors33309); var dthens33309 = new Date(TargetDates33309); var dnows33309 = new Date("01/19/2026 3:31:58 AM"); if(CountSteppers33309>0) ddiffs33309 = new Date(dnows33309-dthens33309); else ddiffs33309 = new Date(dthens33309-dnows33309); gsecss33309 = Math.floor(ddiffs33309.valueOf()/1000); CountBacks33309(gsecss33309);