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 (LeadingZeros30736 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30736(secs) { if (secs < 0) { document.getElementById("cntdwns30736").innerHTML = FinishMessages30736; return; } DisplayStrs30736 = DisplayFormats30736.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30736 = DisplayStrs30736.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30736 = DisplayStrs30736.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30736 = DisplayStrs30736.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30736").innerHTML = DisplayStrs30736; if (CountActives30736) //alert(SetTimeOutPeriods30736); setTimeout("CountBacks30736(" + (secs+CountSteppers30736) + ")", SetTimeOutPeriods30736); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30736)=="undefined") BackColors30736 = ""; if (typeof(ForeColors30736)=="undefined") ForeColors30736= "white"; if (typeof(TargetDates30736)=="undefined") TargetDates30736 = "11/02/2024 9:00:00 PM"; if (typeof(DisplayFormats30736)=="undefined") DisplayFormats30736 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30736)=="undefined") CountActives30736 = true; if (typeof(FinishMessages30736)=="undefined") FinishMessages30736 = ""; if (typeof(CountSteppers30736)!="number") CountSteppers30736 = -1; if (typeof(LeadingZeros30736)=="undefined") LeadingZeros30736 = true; CountSteppers30736 = Math.ceil(CountSteppers30736); if (CountSteppers30736 == 0) CountActives30736 = false; var SetTimeOutPeriods30736 = (Math.abs(CountSteppers30736)-1)*1000 + 990; puti(BackColors30736, ForeColors30736); var dthens30736 = new Date(TargetDates30736); var dnows30736 = new Date("10/31/2024 11:07:58 AM"); if(CountSteppers30736>0) ddiffs30736 = new Date(dnows30736-dthens30736); else ddiffs30736 = new Date(dthens30736-dnows30736); gsecss30736 = Math.floor(ddiffs30736.valueOf()/1000); CountBacks30736(gsecss30736);