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 (LeadingZeros30770 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30770(secs) { if (secs < 0) { document.getElementById("cntdwns30770").innerHTML = FinishMessages30770; return; } DisplayStrs30770 = DisplayFormats30770.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30770 = DisplayStrs30770.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30770 = DisplayStrs30770.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30770 = DisplayStrs30770.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30770").innerHTML = DisplayStrs30770; if (CountActives30770) //alert(SetTimeOutPeriods30770); setTimeout("CountBacks30770(" + (secs+CountSteppers30770) + ")", SetTimeOutPeriods30770); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30770)=="undefined") BackColors30770 = ""; if (typeof(ForeColors30770)=="undefined") ForeColors30770= "white"; if (typeof(TargetDates30770)=="undefined") TargetDates30770 = "07/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30770)=="undefined") DisplayFormats30770 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30770)=="undefined") CountActives30770 = true; if (typeof(FinishMessages30770)=="undefined") FinishMessages30770 = ""; if (typeof(CountSteppers30770)!="number") CountSteppers30770 = -1; if (typeof(LeadingZeros30770)=="undefined") LeadingZeros30770 = true; CountSteppers30770 = Math.ceil(CountSteppers30770); if (CountSteppers30770 == 0) CountActives30770 = false; var SetTimeOutPeriods30770 = (Math.abs(CountSteppers30770)-1)*1000 + 990; puti(BackColors30770, ForeColors30770); var dthens30770 = new Date(TargetDates30770); var dnows30770 = new Date("09/08/2024 2:20:54 AM"); if(CountSteppers30770>0) ddiffs30770 = new Date(dnows30770-dthens30770); else ddiffs30770 = new Date(dthens30770-dnows30770); gsecss30770 = Math.floor(ddiffs30770.valueOf()/1000); CountBacks30770(gsecss30770);