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 (LeadingZeros30829 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30829(secs) { if (secs < 0) { document.getElementById("cntdwns30829").innerHTML = FinishMessages30829; return; } DisplayStrs30829 = DisplayFormats30829.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30829 = DisplayStrs30829.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30829 = DisplayStrs30829.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30829 = DisplayStrs30829.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30829").innerHTML = DisplayStrs30829; if (CountActives30829) //alert(SetTimeOutPeriods30829); setTimeout("CountBacks30829(" + (secs+CountSteppers30829) + ")", SetTimeOutPeriods30829); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30829)=="undefined") BackColors30829 = ""; if (typeof(ForeColors30829)=="undefined") ForeColors30829= "white"; if (typeof(TargetDates30829)=="undefined") TargetDates30829 = "07/30/2024 10:00:00 PM"; if (typeof(DisplayFormats30829)=="undefined") DisplayFormats30829 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30829)=="undefined") CountActives30829 = true; if (typeof(FinishMessages30829)=="undefined") FinishMessages30829 = ""; if (typeof(CountSteppers30829)!="number") CountSteppers30829 = -1; if (typeof(LeadingZeros30829)=="undefined") LeadingZeros30829 = true; CountSteppers30829 = Math.ceil(CountSteppers30829); if (CountSteppers30829 == 0) CountActives30829 = false; var SetTimeOutPeriods30829 = (Math.abs(CountSteppers30829)-1)*1000 + 990; puti(BackColors30829, ForeColors30829); var dthens30829 = new Date(TargetDates30829); var dnows30829 = new Date("10/18/2024 5:51:47 AM"); if(CountSteppers30829>0) ddiffs30829 = new Date(dnows30829-dthens30829); else ddiffs30829 = new Date(dthens30829-dnows30829); gsecss30829 = Math.floor(ddiffs30829.valueOf()/1000); CountBacks30829(gsecss30829);