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 (LeadingZeros30265 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30265(secs) { if (secs < 0) { document.getElementById("cntdwns30265").innerHTML = FinishMessages30265; return; } DisplayStrs30265 = DisplayFormats30265.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30265 = DisplayStrs30265.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30265 = DisplayStrs30265.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30265 = DisplayStrs30265.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30265").innerHTML = DisplayStrs30265; if (CountActives30265) //alert(SetTimeOutPeriods30265); setTimeout("CountBacks30265(" + (secs+CountSteppers30265) + ")", SetTimeOutPeriods30265); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30265)=="undefined") BackColors30265 = ""; if (typeof(ForeColors30265)=="undefined") ForeColors30265= "white"; if (typeof(TargetDates30265)=="undefined") TargetDates30265 = "04/22/2024 10:00:00 PM"; if (typeof(DisplayFormats30265)=="undefined") DisplayFormats30265 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30265)=="undefined") CountActives30265 = true; if (typeof(FinishMessages30265)=="undefined") FinishMessages30265 = ""; if (typeof(CountSteppers30265)!="number") CountSteppers30265 = -1; if (typeof(LeadingZeros30265)=="undefined") LeadingZeros30265 = true; CountSteppers30265 = Math.ceil(CountSteppers30265); if (CountSteppers30265 == 0) CountActives30265 = false; var SetTimeOutPeriods30265 = (Math.abs(CountSteppers30265)-1)*1000 + 990; puti(BackColors30265, ForeColors30265); var dthens30265 = new Date(TargetDates30265); var dnows30265 = new Date("05/03/2024 5:00:28 AM"); if(CountSteppers30265>0) ddiffs30265 = new Date(dnows30265-dthens30265); else ddiffs30265 = new Date(dthens30265-dnows30265); gsecss30265 = Math.floor(ddiffs30265.valueOf()/1000); CountBacks30265(gsecss30265);