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 (LeadingZeros30542 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30542(secs) { if (secs < 0) { document.getElementById("cntdwns30542").innerHTML = FinishMessages30542; return; } DisplayStrs30542 = DisplayFormats30542.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30542 = DisplayStrs30542.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30542 = DisplayStrs30542.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30542 = DisplayStrs30542.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30542").innerHTML = DisplayStrs30542; if (CountActives30542) //alert(SetTimeOutPeriods30542); setTimeout("CountBacks30542(" + (secs+CountSteppers30542) + ")", SetTimeOutPeriods30542); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30542)=="undefined") BackColors30542 = ""; if (typeof(ForeColors30542)=="undefined") ForeColors30542= "white"; if (typeof(TargetDates30542)=="undefined") TargetDates30542 = "07/30/2024 10:00:00 PM"; if (typeof(DisplayFormats30542)=="undefined") DisplayFormats30542 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30542)=="undefined") CountActives30542 = true; if (typeof(FinishMessages30542)=="undefined") FinishMessages30542 = ""; if (typeof(CountSteppers30542)!="number") CountSteppers30542 = -1; if (typeof(LeadingZeros30542)=="undefined") LeadingZeros30542 = true; CountSteppers30542 = Math.ceil(CountSteppers30542); if (CountSteppers30542 == 0) CountActives30542 = false; var SetTimeOutPeriods30542 = (Math.abs(CountSteppers30542)-1)*1000 + 990; puti(BackColors30542, ForeColors30542); var dthens30542 = new Date(TargetDates30542); var dnows30542 = new Date("09/08/2024 5:53:22 AM"); if(CountSteppers30542>0) ddiffs30542 = new Date(dnows30542-dthens30542); else ddiffs30542 = new Date(dthens30542-dnows30542); gsecss30542 = Math.floor(ddiffs30542.valueOf()/1000); CountBacks30542(gsecss30542);