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 (LeadingZeros30661 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30661(secs) { if (secs < 0) { document.getElementById("cntdwns30661").innerHTML = FinishMessages30661; return; } DisplayStrs30661 = DisplayFormats30661.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30661 = DisplayStrs30661.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30661 = DisplayStrs30661.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30661 = DisplayStrs30661.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30661").innerHTML = DisplayStrs30661; if (CountActives30661) //alert(SetTimeOutPeriods30661); setTimeout("CountBacks30661(" + (secs+CountSteppers30661) + ")", SetTimeOutPeriods30661); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30661)=="undefined") BackColors30661 = ""; if (typeof(ForeColors30661)=="undefined") ForeColors30661= "white"; if (typeof(TargetDates30661)=="undefined") TargetDates30661 = "07/30/2024 10:00:00 PM"; if (typeof(DisplayFormats30661)=="undefined") DisplayFormats30661 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30661)=="undefined") CountActives30661 = true; if (typeof(FinishMessages30661)=="undefined") FinishMessages30661 = ""; if (typeof(CountSteppers30661)!="number") CountSteppers30661 = -1; if (typeof(LeadingZeros30661)=="undefined") LeadingZeros30661 = true; CountSteppers30661 = Math.ceil(CountSteppers30661); if (CountSteppers30661 == 0) CountActives30661 = false; var SetTimeOutPeriods30661 = (Math.abs(CountSteppers30661)-1)*1000 + 990; puti(BackColors30661, ForeColors30661); var dthens30661 = new Date(TargetDates30661); var dnows30661 = new Date("09/08/2024 3:25:33 AM"); if(CountSteppers30661>0) ddiffs30661 = new Date(dnows30661-dthens30661); else ddiffs30661 = new Date(dthens30661-dnows30661); gsecss30661 = Math.floor(ddiffs30661.valueOf()/1000); CountBacks30661(gsecss30661);