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 (LeadingZeros30759 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30759(secs) { if (secs < 0) { document.getElementById("cntdwns30759").innerHTML = FinishMessages30759; return; } DisplayStrs30759 = DisplayFormats30759.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30759 = DisplayStrs30759.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30759 = DisplayStrs30759.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30759 = DisplayStrs30759.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30759").innerHTML = DisplayStrs30759; if (CountActives30759) //alert(SetTimeOutPeriods30759); setTimeout("CountBacks30759(" + (secs+CountSteppers30759) + ")", SetTimeOutPeriods30759); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30759)=="undefined") BackColors30759 = ""; if (typeof(ForeColors30759)=="undefined") ForeColors30759= "white"; if (typeof(TargetDates30759)=="undefined") TargetDates30759 = "07/30/2024 10:00:00 PM"; if (typeof(DisplayFormats30759)=="undefined") DisplayFormats30759 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30759)=="undefined") CountActives30759 = true; if (typeof(FinishMessages30759)=="undefined") FinishMessages30759 = ""; if (typeof(CountSteppers30759)!="number") CountSteppers30759 = -1; if (typeof(LeadingZeros30759)=="undefined") LeadingZeros30759 = true; CountSteppers30759 = Math.ceil(CountSteppers30759); if (CountSteppers30759 == 0) CountActives30759 = false; var SetTimeOutPeriods30759 = (Math.abs(CountSteppers30759)-1)*1000 + 990; puti(BackColors30759, ForeColors30759); var dthens30759 = new Date(TargetDates30759); var dnows30759 = new Date("09/08/2024 2:30:03 AM"); if(CountSteppers30759>0) ddiffs30759 = new Date(dnows30759-dthens30759); else ddiffs30759 = new Date(dthens30759-dnows30759); gsecss30759 = Math.floor(ddiffs30759.valueOf()/1000); CountBacks30759(gsecss30759);