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 (LeadingZeros30799 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30799(secs) { if (secs < 0) { document.getElementById("cntdwns30799").innerHTML = FinishMessages30799; return; } DisplayStrs30799 = DisplayFormats30799.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30799 = DisplayStrs30799.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30799 = DisplayStrs30799.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30799 = DisplayStrs30799.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30799").innerHTML = DisplayStrs30799; if (CountActives30799) //alert(SetTimeOutPeriods30799); setTimeout("CountBacks30799(" + (secs+CountSteppers30799) + ")", SetTimeOutPeriods30799); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30799)=="undefined") BackColors30799 = ""; if (typeof(ForeColors30799)=="undefined") ForeColors30799= "white"; if (typeof(TargetDates30799)=="undefined") TargetDates30799 = "07/30/2024 10:00:00 PM"; if (typeof(DisplayFormats30799)=="undefined") DisplayFormats30799 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30799)=="undefined") CountActives30799 = true; if (typeof(FinishMessages30799)=="undefined") FinishMessages30799 = ""; if (typeof(CountSteppers30799)!="number") CountSteppers30799 = -1; if (typeof(LeadingZeros30799)=="undefined") LeadingZeros30799 = true; CountSteppers30799 = Math.ceil(CountSteppers30799); if (CountSteppers30799 == 0) CountActives30799 = false; var SetTimeOutPeriods30799 = (Math.abs(CountSteppers30799)-1)*1000 + 990; puti(BackColors30799, ForeColors30799); var dthens30799 = new Date(TargetDates30799); var dnows30799 = new Date("10/18/2024 6:07:45 AM"); if(CountSteppers30799>0) ddiffs30799 = new Date(dnows30799-dthens30799); else ddiffs30799 = new Date(dthens30799-dnows30799); gsecss30799 = Math.floor(ddiffs30799.valueOf()/1000); CountBacks30799(gsecss30799);