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 (LeadingZeros30562 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30562(secs) { if (secs < 0) { document.getElementById("cntdwns30562").innerHTML = FinishMessages30562; return; } DisplayStrs30562 = DisplayFormats30562.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30562 = DisplayStrs30562.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30562 = DisplayStrs30562.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30562 = DisplayStrs30562.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30562").innerHTML = DisplayStrs30562; if (CountActives30562) //alert(SetTimeOutPeriods30562); setTimeout("CountBacks30562(" + (secs+CountSteppers30562) + ")", SetTimeOutPeriods30562); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30562)=="undefined") BackColors30562 = ""; if (typeof(ForeColors30562)=="undefined") ForeColors30562= "white"; if (typeof(TargetDates30562)=="undefined") TargetDates30562 = "06/06/2026 10:00:00 PM"; if (typeof(DisplayFormats30562)=="undefined") DisplayFormats30562 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30562)=="undefined") CountActives30562 = true; if (typeof(FinishMessages30562)=="undefined") FinishMessages30562 = ""; if (typeof(CountSteppers30562)!="number") CountSteppers30562 = -1; if (typeof(LeadingZeros30562)=="undefined") LeadingZeros30562 = true; CountSteppers30562 = Math.ceil(CountSteppers30562); if (CountSteppers30562 == 0) CountActives30562 = false; var SetTimeOutPeriods30562 = (Math.abs(CountSteppers30562)-1)*1000 + 990; puti(BackColors30562, ForeColors30562); var dthens30562 = new Date(TargetDates30562); var dnows30562 = new Date("06/03/2026 6:30:24 PM"); if(CountSteppers30562>0) ddiffs30562 = new Date(dnows30562-dthens30562); else ddiffs30562 = new Date(dthens30562-dnows30562); gsecss30562 = Math.floor(ddiffs30562.valueOf()/1000); CountBacks30562(gsecss30562);