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 (LeadingZeros30577 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30577(secs) { if (secs < 0) { document.getElementById("cntdwns30577").innerHTML = FinishMessages30577; return; } DisplayStrs30577 = DisplayFormats30577.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30577 = DisplayStrs30577.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30577 = DisplayStrs30577.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30577 = DisplayStrs30577.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30577").innerHTML = DisplayStrs30577; if (CountActives30577) //alert(SetTimeOutPeriods30577); setTimeout("CountBacks30577(" + (secs+CountSteppers30577) + ")", SetTimeOutPeriods30577); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30577)=="undefined") BackColors30577 = ""; if (typeof(ForeColors30577)=="undefined") ForeColors30577= "white"; if (typeof(TargetDates30577)=="undefined") TargetDates30577 = "07/30/2024 10:00:00 PM"; if (typeof(DisplayFormats30577)=="undefined") DisplayFormats30577 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30577)=="undefined") CountActives30577 = true; if (typeof(FinishMessages30577)=="undefined") FinishMessages30577 = ""; if (typeof(CountSteppers30577)!="number") CountSteppers30577 = -1; if (typeof(LeadingZeros30577)=="undefined") LeadingZeros30577 = true; CountSteppers30577 = Math.ceil(CountSteppers30577); if (CountSteppers30577 == 0) CountActives30577 = false; var SetTimeOutPeriods30577 = (Math.abs(CountSteppers30577)-1)*1000 + 990; puti(BackColors30577, ForeColors30577); var dthens30577 = new Date(TargetDates30577); var dnows30577 = new Date("09/08/2024 3:46:14 AM"); if(CountSteppers30577>0) ddiffs30577 = new Date(dnows30577-dthens30577); else ddiffs30577 = new Date(dthens30577-dnows30577); gsecss30577 = Math.floor(ddiffs30577.valueOf()/1000); CountBacks30577(gsecss30577);