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 (LeadingZeros30755 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30755(secs) { if (secs < 0) { document.getElementById("cntdwns30755").innerHTML = FinishMessages30755; return; } DisplayStrs30755 = DisplayFormats30755.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30755 = DisplayStrs30755.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30755 = DisplayStrs30755.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30755 = DisplayStrs30755.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30755").innerHTML = DisplayStrs30755; if (CountActives30755) //alert(SetTimeOutPeriods30755); setTimeout("CountBacks30755(" + (secs+CountSteppers30755) + ")", SetTimeOutPeriods30755); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30755)=="undefined") BackColors30755 = ""; if (typeof(ForeColors30755)=="undefined") ForeColors30755= "white"; if (typeof(TargetDates30755)=="undefined") TargetDates30755 = "07/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30755)=="undefined") DisplayFormats30755 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30755)=="undefined") CountActives30755 = true; if (typeof(FinishMessages30755)=="undefined") FinishMessages30755 = ""; if (typeof(CountSteppers30755)!="number") CountSteppers30755 = -1; if (typeof(LeadingZeros30755)=="undefined") LeadingZeros30755 = true; CountSteppers30755 = Math.ceil(CountSteppers30755); if (CountSteppers30755 == 0) CountActives30755 = false; var SetTimeOutPeriods30755 = (Math.abs(CountSteppers30755)-1)*1000 + 990; puti(BackColors30755, ForeColors30755); var dthens30755 = new Date(TargetDates30755); var dnows30755 = new Date("09/08/2024 5:03:04 AM"); if(CountSteppers30755>0) ddiffs30755 = new Date(dnows30755-dthens30755); else ddiffs30755 = new Date(dthens30755-dnows30755); gsecss30755 = Math.floor(ddiffs30755.valueOf()/1000); CountBacks30755(gsecss30755);