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 (LeadingZeros33522 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33522(secs) { if (secs < 0) { document.getElementById("cntdwns33522").innerHTML = FinishMessages33522; return; } DisplayStrs33522 = DisplayFormats33522.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33522 = DisplayStrs33522.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33522 = DisplayStrs33522.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33522 = DisplayStrs33522.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33522").innerHTML = DisplayStrs33522; if (CountActives33522) //alert(SetTimeOutPeriods33522); setTimeout("CountBacks33522(" + (secs+CountSteppers33522) + ")", SetTimeOutPeriods33522); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33522)=="undefined") BackColors33522 = ""; if (typeof(ForeColors33522)=="undefined") ForeColors33522= "white"; if (typeof(TargetDates33522)=="undefined") TargetDates33522 = "02/08/2026 10:00:00 PM"; if (typeof(DisplayFormats33522)=="undefined") DisplayFormats33522 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33522)=="undefined") CountActives33522 = true; if (typeof(FinishMessages33522)=="undefined") FinishMessages33522 = ""; if (typeof(CountSteppers33522)!="number") CountSteppers33522 = -1; if (typeof(LeadingZeros33522)=="undefined") LeadingZeros33522 = true; CountSteppers33522 = Math.ceil(CountSteppers33522); if (CountSteppers33522 == 0) CountActives33522 = false; var SetTimeOutPeriods33522 = (Math.abs(CountSteppers33522)-1)*1000 + 990; puti(BackColors33522, ForeColors33522); var dthens33522 = new Date(TargetDates33522); var dnows33522 = new Date("02/05/2026 3:42:48 PM"); if(CountSteppers33522>0) ddiffs33522 = new Date(dnows33522-dthens33522); else ddiffs33522 = new Date(dthens33522-dnows33522); gsecss33522 = Math.floor(ddiffs33522.valueOf()/1000); CountBacks33522(gsecss33522);