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 (LeadingZeros30537 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30537(secs) { if (secs < 0) { document.getElementById("cntdwns30537").innerHTML = FinishMessages30537; return; } DisplayStrs30537 = DisplayFormats30537.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30537 = DisplayStrs30537.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30537 = DisplayStrs30537.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30537 = DisplayStrs30537.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30537").innerHTML = DisplayStrs30537; if (CountActives30537) //alert(SetTimeOutPeriods30537); setTimeout("CountBacks30537(" + (secs+CountSteppers30537) + ")", SetTimeOutPeriods30537); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30537)=="undefined") BackColors30537 = ""; if (typeof(ForeColors30537)=="undefined") ForeColors30537= "white"; if (typeof(TargetDates30537)=="undefined") TargetDates30537 = "07/30/2024 10:00:00 PM"; if (typeof(DisplayFormats30537)=="undefined") DisplayFormats30537 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30537)=="undefined") CountActives30537 = true; if (typeof(FinishMessages30537)=="undefined") FinishMessages30537 = ""; if (typeof(CountSteppers30537)!="number") CountSteppers30537 = -1; if (typeof(LeadingZeros30537)=="undefined") LeadingZeros30537 = true; CountSteppers30537 = Math.ceil(CountSteppers30537); if (CountSteppers30537 == 0) CountActives30537 = false; var SetTimeOutPeriods30537 = (Math.abs(CountSteppers30537)-1)*1000 + 990; puti(BackColors30537, ForeColors30537); var dthens30537 = new Date(TargetDates30537); var dnows30537 = new Date("09/08/2024 2:30:57 AM"); if(CountSteppers30537>0) ddiffs30537 = new Date(dnows30537-dthens30537); else ddiffs30537 = new Date(dthens30537-dnows30537); gsecss30537 = Math.floor(ddiffs30537.valueOf()/1000); CountBacks30537(gsecss30537);