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 (LeadingZeros30576 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30576(secs) { if (secs < 0) { document.getElementById("cntdwns30576").innerHTML = FinishMessages30576; return; } DisplayStrs30576 = DisplayFormats30576.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30576 = DisplayStrs30576.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30576 = DisplayStrs30576.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30576 = DisplayStrs30576.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30576").innerHTML = DisplayStrs30576; if (CountActives30576) //alert(SetTimeOutPeriods30576); setTimeout("CountBacks30576(" + (secs+CountSteppers30576) + ")", SetTimeOutPeriods30576); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30576)=="undefined") BackColors30576 = ""; if (typeof(ForeColors30576)=="undefined") ForeColors30576= "white"; if (typeof(TargetDates30576)=="undefined") TargetDates30576 = "07/30/2024 10:00:00 PM"; if (typeof(DisplayFormats30576)=="undefined") DisplayFormats30576 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30576)=="undefined") CountActives30576 = true; if (typeof(FinishMessages30576)=="undefined") FinishMessages30576 = ""; if (typeof(CountSteppers30576)!="number") CountSteppers30576 = -1; if (typeof(LeadingZeros30576)=="undefined") LeadingZeros30576 = true; CountSteppers30576 = Math.ceil(CountSteppers30576); if (CountSteppers30576 == 0) CountActives30576 = false; var SetTimeOutPeriods30576 = (Math.abs(CountSteppers30576)-1)*1000 + 990; puti(BackColors30576, ForeColors30576); var dthens30576 = new Date(TargetDates30576); var dnows30576 = new Date("09/08/2024 3:31:55 AM"); if(CountSteppers30576>0) ddiffs30576 = new Date(dnows30576-dthens30576); else ddiffs30576 = new Date(dthens30576-dnows30576); gsecss30576 = Math.floor(ddiffs30576.valueOf()/1000); CountBacks30576(gsecss30576);