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 (LeadingZeros30788 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30788(secs) { if (secs < 0) { document.getElementById("cntdwns30788").innerHTML = FinishMessages30788; return; } DisplayStrs30788 = DisplayFormats30788.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30788 = DisplayStrs30788.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30788 = DisplayStrs30788.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30788 = DisplayStrs30788.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30788").innerHTML = DisplayStrs30788; if (CountActives30788) //alert(SetTimeOutPeriods30788); setTimeout("CountBacks30788(" + (secs+CountSteppers30788) + ")", SetTimeOutPeriods30788); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30788)=="undefined") BackColors30788 = ""; if (typeof(ForeColors30788)=="undefined") ForeColors30788= "white"; if (typeof(TargetDates30788)=="undefined") TargetDates30788 = "07/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30788)=="undefined") DisplayFormats30788 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30788)=="undefined") CountActives30788 = true; if (typeof(FinishMessages30788)=="undefined") FinishMessages30788 = ""; if (typeof(CountSteppers30788)!="number") CountSteppers30788 = -1; if (typeof(LeadingZeros30788)=="undefined") LeadingZeros30788 = true; CountSteppers30788 = Math.ceil(CountSteppers30788); if (CountSteppers30788 == 0) CountActives30788 = false; var SetTimeOutPeriods30788 = (Math.abs(CountSteppers30788)-1)*1000 + 990; puti(BackColors30788, ForeColors30788); var dthens30788 = new Date(TargetDates30788); var dnows30788 = new Date("10/18/2024 6:12:11 AM"); if(CountSteppers30788>0) ddiffs30788 = new Date(dnows30788-dthens30788); else ddiffs30788 = new Date(dthens30788-dnows30788); gsecss30788 = Math.floor(ddiffs30788.valueOf()/1000); CountBacks30788(gsecss30788);