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 (LeadingZeros33770 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33770(secs) { if (secs < 0) { document.getElementById("cntdwns33770").innerHTML = FinishMessages33770; return; } DisplayStrs33770 = DisplayFormats33770.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33770 = DisplayStrs33770.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33770 = DisplayStrs33770.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33770 = DisplayStrs33770.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33770").innerHTML = DisplayStrs33770; if (CountActives33770) //alert(SetTimeOutPeriods33770); setTimeout("CountBacks33770(" + (secs+CountSteppers33770) + ")", SetTimeOutPeriods33770); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33770)=="undefined") BackColors33770 = ""; if (typeof(ForeColors33770)=="undefined") ForeColors33770= "white"; if (typeof(TargetDates33770)=="undefined") TargetDates33770 = "05/08/2026 10:00:00 PM"; if (typeof(DisplayFormats33770)=="undefined") DisplayFormats33770 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33770)=="undefined") CountActives33770 = true; if (typeof(FinishMessages33770)=="undefined") FinishMessages33770 = ""; if (typeof(CountSteppers33770)!="number") CountSteppers33770 = -1; if (typeof(LeadingZeros33770)=="undefined") LeadingZeros33770 = true; CountSteppers33770 = Math.ceil(CountSteppers33770); if (CountSteppers33770 == 0) CountActives33770 = false; var SetTimeOutPeriods33770 = (Math.abs(CountSteppers33770)-1)*1000 + 990; puti(BackColors33770, ForeColors33770); var dthens33770 = new Date(TargetDates33770); var dnows33770 = new Date("05/05/2026 8:14:42 AM"); if(CountSteppers33770>0) ddiffs33770 = new Date(dnows33770-dthens33770); else ddiffs33770 = new Date(dthens33770-dnows33770); gsecss33770 = Math.floor(ddiffs33770.valueOf()/1000); CountBacks33770(gsecss33770);