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 (LeadingZeros30437 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30437(secs) { if (secs < 0) { document.getElementById("cntdwns30437").innerHTML = FinishMessages30437; return; } DisplayStrs30437 = DisplayFormats30437.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30437 = DisplayStrs30437.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30437 = DisplayStrs30437.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30437 = DisplayStrs30437.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30437").innerHTML = DisplayStrs30437; if (CountActives30437) //alert(SetTimeOutPeriods30437); setTimeout("CountBacks30437(" + (secs+CountSteppers30437) + ")", SetTimeOutPeriods30437); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30437)=="undefined") BackColors30437 = ""; if (typeof(ForeColors30437)=="undefined") ForeColors30437= "white"; if (typeof(TargetDates30437)=="undefined") TargetDates30437 = "07/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30437)=="undefined") DisplayFormats30437 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30437)=="undefined") CountActives30437 = true; if (typeof(FinishMessages30437)=="undefined") FinishMessages30437 = ""; if (typeof(CountSteppers30437)!="number") CountSteppers30437 = -1; if (typeof(LeadingZeros30437)=="undefined") LeadingZeros30437 = true; CountSteppers30437 = Math.ceil(CountSteppers30437); if (CountSteppers30437 == 0) CountActives30437 = false; var SetTimeOutPeriods30437 = (Math.abs(CountSteppers30437)-1)*1000 + 990; puti(BackColors30437, ForeColors30437); var dthens30437 = new Date(TargetDates30437); var dnows30437 = new Date("09/08/2024 2:08:25 AM"); if(CountSteppers30437>0) ddiffs30437 = new Date(dnows30437-dthens30437); else ddiffs30437 = new Date(dthens30437-dnows30437); gsecss30437 = Math.floor(ddiffs30437.valueOf()/1000); CountBacks30437(gsecss30437);