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 (LeadingZeros33805 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33805(secs) { if (secs < 0) { document.getElementById("cntdwns33805").innerHTML = FinishMessages33805; return; } DisplayStrs33805 = DisplayFormats33805.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33805 = DisplayStrs33805.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33805 = DisplayStrs33805.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33805 = DisplayStrs33805.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33805").innerHTML = DisplayStrs33805; if (CountActives33805) //alert(SetTimeOutPeriods33805); setTimeout("CountBacks33805(" + (secs+CountSteppers33805) + ")", SetTimeOutPeriods33805); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33805)=="undefined") BackColors33805 = ""; if (typeof(ForeColors33805)=="undefined") ForeColors33805= "white"; if (typeof(TargetDates33805)=="undefined") TargetDates33805 = "06/09/2026 10:00:00 PM"; if (typeof(DisplayFormats33805)=="undefined") DisplayFormats33805 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33805)=="undefined") CountActives33805 = true; if (typeof(FinishMessages33805)=="undefined") FinishMessages33805 = ""; if (typeof(CountSteppers33805)!="number") CountSteppers33805 = -1; if (typeof(LeadingZeros33805)=="undefined") LeadingZeros33805 = true; CountSteppers33805 = Math.ceil(CountSteppers33805); if (CountSteppers33805 == 0) CountActives33805 = false; var SetTimeOutPeriods33805 = (Math.abs(CountSteppers33805)-1)*1000 + 990; puti(BackColors33805, ForeColors33805); var dthens33805 = new Date(TargetDates33805); var dnows33805 = new Date("06/07/2026 4:17:00 AM"); if(CountSteppers33805>0) ddiffs33805 = new Date(dnows33805-dthens33805); else ddiffs33805 = new Date(dthens33805-dnows33805); gsecss33805 = Math.floor(ddiffs33805.valueOf()/1000); CountBacks33805(gsecss33805);