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 (LeadingZeros30758 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30758(secs) { if (secs < 0) { document.getElementById("cntdwns30758").innerHTML = FinishMessages30758; return; } DisplayStrs30758 = DisplayFormats30758.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30758 = DisplayStrs30758.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30758 = DisplayStrs30758.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30758 = DisplayStrs30758.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30758").innerHTML = DisplayStrs30758; if (CountActives30758) //alert(SetTimeOutPeriods30758); setTimeout("CountBacks30758(" + (secs+CountSteppers30758) + ")", SetTimeOutPeriods30758); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30758)=="undefined") BackColors30758 = ""; if (typeof(ForeColors30758)=="undefined") ForeColors30758= "white"; if (typeof(TargetDates30758)=="undefined") TargetDates30758 = "07/30/2024 10:00:00 PM"; if (typeof(DisplayFormats30758)=="undefined") DisplayFormats30758 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30758)=="undefined") CountActives30758 = true; if (typeof(FinishMessages30758)=="undefined") FinishMessages30758 = ""; if (typeof(CountSteppers30758)!="number") CountSteppers30758 = -1; if (typeof(LeadingZeros30758)=="undefined") LeadingZeros30758 = true; CountSteppers30758 = Math.ceil(CountSteppers30758); if (CountSteppers30758 == 0) CountActives30758 = false; var SetTimeOutPeriods30758 = (Math.abs(CountSteppers30758)-1)*1000 + 990; puti(BackColors30758, ForeColors30758); var dthens30758 = new Date(TargetDates30758); var dnows30758 = new Date("10/18/2024 6:18:36 AM"); if(CountSteppers30758>0) ddiffs30758 = new Date(dnows30758-dthens30758); else ddiffs30758 = new Date(dthens30758-dnows30758); gsecss30758 = Math.floor(ddiffs30758.valueOf()/1000); CountBacks30758(gsecss30758);