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 (LeadingZeros30629 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30629(secs) { if (secs < 0) { document.getElementById("cntdwns30629").innerHTML = FinishMessages30629; return; } DisplayStrs30629 = DisplayFormats30629.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30629 = DisplayStrs30629.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30629 = DisplayStrs30629.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30629 = DisplayStrs30629.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30629").innerHTML = DisplayStrs30629; if (CountActives30629) //alert(SetTimeOutPeriods30629); setTimeout("CountBacks30629(" + (secs+CountSteppers30629) + ")", SetTimeOutPeriods30629); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30629)=="undefined") BackColors30629 = ""; if (typeof(ForeColors30629)=="undefined") ForeColors30629= "white"; if (typeof(TargetDates30629)=="undefined") TargetDates30629 = "07/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30629)=="undefined") DisplayFormats30629 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30629)=="undefined") CountActives30629 = true; if (typeof(FinishMessages30629)=="undefined") FinishMessages30629 = ""; if (typeof(CountSteppers30629)!="number") CountSteppers30629 = -1; if (typeof(LeadingZeros30629)=="undefined") LeadingZeros30629 = true; CountSteppers30629 = Math.ceil(CountSteppers30629); if (CountSteppers30629 == 0) CountActives30629 = false; var SetTimeOutPeriods30629 = (Math.abs(CountSteppers30629)-1)*1000 + 990; puti(BackColors30629, ForeColors30629); var dthens30629 = new Date(TargetDates30629); var dnows30629 = new Date("09/08/2024 3:31:51 AM"); if(CountSteppers30629>0) ddiffs30629 = new Date(dnows30629-dthens30629); else ddiffs30629 = new Date(dthens30629-dnows30629); gsecss30629 = Math.floor(ddiffs30629.valueOf()/1000); CountBacks30629(gsecss30629);