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 (LeadingZeros30837 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30837(secs) { if (secs < 0) { document.getElementById("cntdwns30837").innerHTML = FinishMessages30837; return; } DisplayStrs30837 = DisplayFormats30837.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30837 = DisplayStrs30837.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30837 = DisplayStrs30837.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30837 = DisplayStrs30837.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30837").innerHTML = DisplayStrs30837; if (CountActives30837) //alert(SetTimeOutPeriods30837); setTimeout("CountBacks30837(" + (secs+CountSteppers30837) + ")", SetTimeOutPeriods30837); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30837)=="undefined") BackColors30837 = ""; if (typeof(ForeColors30837)=="undefined") ForeColors30837= "white"; if (typeof(TargetDates30837)=="undefined") TargetDates30837 = "07/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30837)=="undefined") DisplayFormats30837 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30837)=="undefined") CountActives30837 = true; if (typeof(FinishMessages30837)=="undefined") FinishMessages30837 = ""; if (typeof(CountSteppers30837)!="number") CountSteppers30837 = -1; if (typeof(LeadingZeros30837)=="undefined") LeadingZeros30837 = true; CountSteppers30837 = Math.ceil(CountSteppers30837); if (CountSteppers30837 == 0) CountActives30837 = false; var SetTimeOutPeriods30837 = (Math.abs(CountSteppers30837)-1)*1000 + 990; puti(BackColors30837, ForeColors30837); var dthens30837 = new Date(TargetDates30837); var dnows30837 = new Date("09/08/2024 3:32:32 AM"); if(CountSteppers30837>0) ddiffs30837 = new Date(dnows30837-dthens30837); else ddiffs30837 = new Date(dthens30837-dnows30837); gsecss30837 = Math.floor(ddiffs30837.valueOf()/1000); CountBacks30837(gsecss30837);