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 (LeadingZeros30836 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30836(secs) { if (secs < 0) { document.getElementById("cntdwns30836").innerHTML = FinishMessages30836; return; } DisplayStrs30836 = DisplayFormats30836.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30836 = DisplayStrs30836.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30836 = DisplayStrs30836.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30836 = DisplayStrs30836.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30836").innerHTML = DisplayStrs30836; if (CountActives30836) //alert(SetTimeOutPeriods30836); setTimeout("CountBacks30836(" + (secs+CountSteppers30836) + ")", SetTimeOutPeriods30836); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30836)=="undefined") BackColors30836 = ""; if (typeof(ForeColors30836)=="undefined") ForeColors30836= "white"; if (typeof(TargetDates30836)=="undefined") TargetDates30836 = "07/30/2024 10:00:00 PM"; if (typeof(DisplayFormats30836)=="undefined") DisplayFormats30836 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30836)=="undefined") CountActives30836 = true; if (typeof(FinishMessages30836)=="undefined") FinishMessages30836 = ""; if (typeof(CountSteppers30836)!="number") CountSteppers30836 = -1; if (typeof(LeadingZeros30836)=="undefined") LeadingZeros30836 = true; CountSteppers30836 = Math.ceil(CountSteppers30836); if (CountSteppers30836 == 0) CountActives30836 = false; var SetTimeOutPeriods30836 = (Math.abs(CountSteppers30836)-1)*1000 + 990; puti(BackColors30836, ForeColors30836); var dthens30836 = new Date(TargetDates30836); var dnows30836 = new Date("09/08/2024 3:37:19 AM"); if(CountSteppers30836>0) ddiffs30836 = new Date(dnows30836-dthens30836); else ddiffs30836 = new Date(dthens30836-dnows30836); gsecss30836 = Math.floor(ddiffs30836.valueOf()/1000); CountBacks30836(gsecss30836);