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 (LeadingZeros30578 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30578(secs) { if (secs < 0) { document.getElementById("cntdwns30578").innerHTML = FinishMessages30578; return; } DisplayStrs30578 = DisplayFormats30578.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30578 = DisplayStrs30578.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30578 = DisplayStrs30578.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30578 = DisplayStrs30578.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30578").innerHTML = DisplayStrs30578; if (CountActives30578) //alert(SetTimeOutPeriods30578); setTimeout("CountBacks30578(" + (secs+CountSteppers30578) + ")", SetTimeOutPeriods30578); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30578)=="undefined") BackColors30578 = ""; if (typeof(ForeColors30578)=="undefined") ForeColors30578= "white"; if (typeof(TargetDates30578)=="undefined") TargetDates30578 = "07/30/2024 10:00:00 PM"; if (typeof(DisplayFormats30578)=="undefined") DisplayFormats30578 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30578)=="undefined") CountActives30578 = true; if (typeof(FinishMessages30578)=="undefined") FinishMessages30578 = ""; if (typeof(CountSteppers30578)!="number") CountSteppers30578 = -1; if (typeof(LeadingZeros30578)=="undefined") LeadingZeros30578 = true; CountSteppers30578 = Math.ceil(CountSteppers30578); if (CountSteppers30578 == 0) CountActives30578 = false; var SetTimeOutPeriods30578 = (Math.abs(CountSteppers30578)-1)*1000 + 990; puti(BackColors30578, ForeColors30578); var dthens30578 = new Date(TargetDates30578); var dnows30578 = new Date("10/18/2024 7:53:42 AM"); if(CountSteppers30578>0) ddiffs30578 = new Date(dnows30578-dthens30578); else ddiffs30578 = new Date(dthens30578-dnows30578); gsecss30578 = Math.floor(ddiffs30578.valueOf()/1000); CountBacks30578(gsecss30578);