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 (LeadingZeros30252 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30252(secs) { if (secs < 0) { document.getElementById("cntdwns30252").innerHTML = FinishMessages30252; return; } DisplayStrs30252 = DisplayFormats30252.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30252 = DisplayStrs30252.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30252 = DisplayStrs30252.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30252 = DisplayStrs30252.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30252").innerHTML = DisplayStrs30252; if (CountActives30252) //alert(SetTimeOutPeriods30252); setTimeout("CountBacks30252(" + (secs+CountSteppers30252) + ")", SetTimeOutPeriods30252); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30252)=="undefined") BackColors30252 = ""; if (typeof(ForeColors30252)=="undefined") ForeColors30252= "white"; if (typeof(TargetDates30252)=="undefined") TargetDates30252 = "11/01/2024 9:00:00 PM"; if (typeof(DisplayFormats30252)=="undefined") DisplayFormats30252 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30252)=="undefined") CountActives30252 = true; if (typeof(FinishMessages30252)=="undefined") FinishMessages30252 = ""; if (typeof(CountSteppers30252)!="number") CountSteppers30252 = -1; if (typeof(LeadingZeros30252)=="undefined") LeadingZeros30252 = true; CountSteppers30252 = Math.ceil(CountSteppers30252); if (CountSteppers30252 == 0) CountActives30252 = false; var SetTimeOutPeriods30252 = (Math.abs(CountSteppers30252)-1)*1000 + 990; puti(BackColors30252, ForeColors30252); var dthens30252 = new Date(TargetDates30252); var dnows30252 = new Date("10/31/2024 11:07:57 AM"); if(CountSteppers30252>0) ddiffs30252 = new Date(dnows30252-dthens30252); else ddiffs30252 = new Date(dthens30252-dnows30252); gsecss30252 = Math.floor(ddiffs30252.valueOf()/1000); CountBacks30252(gsecss30252);