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 (LeadingZeros30828 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30828(secs) { if (secs < 0) { document.getElementById("cntdwns30828").innerHTML = FinishMessages30828; return; } DisplayStrs30828 = DisplayFormats30828.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30828 = DisplayStrs30828.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30828 = DisplayStrs30828.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30828 = DisplayStrs30828.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30828").innerHTML = DisplayStrs30828; if (CountActives30828) //alert(SetTimeOutPeriods30828); setTimeout("CountBacks30828(" + (secs+CountSteppers30828) + ")", SetTimeOutPeriods30828); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30828)=="undefined") BackColors30828 = ""; if (typeof(ForeColors30828)=="undefined") ForeColors30828= "white"; if (typeof(TargetDates30828)=="undefined") TargetDates30828 = "07/30/2024 10:00:00 PM"; if (typeof(DisplayFormats30828)=="undefined") DisplayFormats30828 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30828)=="undefined") CountActives30828 = true; if (typeof(FinishMessages30828)=="undefined") FinishMessages30828 = ""; if (typeof(CountSteppers30828)!="number") CountSteppers30828 = -1; if (typeof(LeadingZeros30828)=="undefined") LeadingZeros30828 = true; CountSteppers30828 = Math.ceil(CountSteppers30828); if (CountSteppers30828 == 0) CountActives30828 = false; var SetTimeOutPeriods30828 = (Math.abs(CountSteppers30828)-1)*1000 + 990; puti(BackColors30828, ForeColors30828); var dthens30828 = new Date(TargetDates30828); var dnows30828 = new Date("09/08/2024 2:15:48 AM"); if(CountSteppers30828>0) ddiffs30828 = new Date(dnows30828-dthens30828); else ddiffs30828 = new Date(dthens30828-dnows30828); gsecss30828 = Math.floor(ddiffs30828.valueOf()/1000); CountBacks30828(gsecss30828);