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 (LeadingZeros33278 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33278(secs) { if (secs < 0) { document.getElementById("cntdwns33278").innerHTML = FinishMessages33278; return; } DisplayStrs33278 = DisplayFormats33278.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33278 = DisplayStrs33278.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33278 = DisplayStrs33278.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33278 = DisplayStrs33278.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33278").innerHTML = DisplayStrs33278; if (CountActives33278) //alert(SetTimeOutPeriods33278); setTimeout("CountBacks33278(" + (secs+CountSteppers33278) + ")", SetTimeOutPeriods33278); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33278)=="undefined") BackColors33278 = ""; if (typeof(ForeColors33278)=="undefined") ForeColors33278= "white"; if (typeof(TargetDates33278)=="undefined") TargetDates33278 = "02/04/2026 10:00:00 PM"; if (typeof(DisplayFormats33278)=="undefined") DisplayFormats33278 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33278)=="undefined") CountActives33278 = true; if (typeof(FinishMessages33278)=="undefined") FinishMessages33278 = ""; if (typeof(CountSteppers33278)!="number") CountSteppers33278 = -1; if (typeof(LeadingZeros33278)=="undefined") LeadingZeros33278 = true; CountSteppers33278 = Math.ceil(CountSteppers33278); if (CountSteppers33278 == 0) CountActives33278 = false; var SetTimeOutPeriods33278 = (Math.abs(CountSteppers33278)-1)*1000 + 990; puti(BackColors33278, ForeColors33278); var dthens33278 = new Date(TargetDates33278); var dnows33278 = new Date("02/02/2026 5:12:38 PM"); if(CountSteppers33278>0) ddiffs33278 = new Date(dnows33278-dthens33278); else ddiffs33278 = new Date(dthens33278-dnows33278); gsecss33278 = Math.floor(ddiffs33278.valueOf()/1000); CountBacks33278(gsecss33278);