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 (LeadingZeros30747 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30747(secs) { if (secs < 0) { document.getElementById("cntdwns30747").innerHTML = FinishMessages30747; return; } DisplayStrs30747 = DisplayFormats30747.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30747 = DisplayStrs30747.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30747 = DisplayStrs30747.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30747 = DisplayStrs30747.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30747").innerHTML = DisplayStrs30747; if (CountActives30747) //alert(SetTimeOutPeriods30747); setTimeout("CountBacks30747(" + (secs+CountSteppers30747) + ")", SetTimeOutPeriods30747); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30747)=="undefined") BackColors30747 = ""; if (typeof(ForeColors30747)=="undefined") ForeColors30747= "white"; if (typeof(TargetDates30747)=="undefined") TargetDates30747 = "07/30/2024 10:00:00 PM"; if (typeof(DisplayFormats30747)=="undefined") DisplayFormats30747 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30747)=="undefined") CountActives30747 = true; if (typeof(FinishMessages30747)=="undefined") FinishMessages30747 = ""; if (typeof(CountSteppers30747)!="number") CountSteppers30747 = -1; if (typeof(LeadingZeros30747)=="undefined") LeadingZeros30747 = true; CountSteppers30747 = Math.ceil(CountSteppers30747); if (CountSteppers30747 == 0) CountActives30747 = false; var SetTimeOutPeriods30747 = (Math.abs(CountSteppers30747)-1)*1000 + 990; puti(BackColors30747, ForeColors30747); var dthens30747 = new Date(TargetDates30747); var dnows30747 = new Date("09/08/2024 2:12:25 AM"); if(CountSteppers30747>0) ddiffs30747 = new Date(dnows30747-dthens30747); else ddiffs30747 = new Date(dthens30747-dnows30747); gsecss30747 = Math.floor(ddiffs30747.valueOf()/1000); CountBacks30747(gsecss30747);