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 (LeadingZeros30261 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30261(secs) { if (secs < 0) { document.getElementById("cntdwns30261").innerHTML = FinishMessages30261; return; } DisplayStrs30261 = DisplayFormats30261.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30261 = DisplayStrs30261.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30261 = DisplayStrs30261.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30261 = DisplayStrs30261.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30261").innerHTML = DisplayStrs30261; if (CountActives30261) //alert(SetTimeOutPeriods30261); setTimeout("CountBacks30261(" + (secs+CountSteppers30261) + ")", SetTimeOutPeriods30261); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30261)=="undefined") BackColors30261 = ""; if (typeof(ForeColors30261)=="undefined") ForeColors30261= "white"; if (typeof(TargetDates30261)=="undefined") TargetDates30261 = "04/29/2024 11:00:00 PM"; if (typeof(DisplayFormats30261)=="undefined") DisplayFormats30261 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30261)=="undefined") CountActives30261 = true; if (typeof(FinishMessages30261)=="undefined") FinishMessages30261 = ""; if (typeof(CountSteppers30261)!="number") CountSteppers30261 = -1; if (typeof(LeadingZeros30261)=="undefined") LeadingZeros30261 = true; CountSteppers30261 = Math.ceil(CountSteppers30261); if (CountSteppers30261 == 0) CountActives30261 = false; var SetTimeOutPeriods30261 = (Math.abs(CountSteppers30261)-1)*1000 + 990; puti(BackColors30261, ForeColors30261); var dthens30261 = new Date(TargetDates30261); var dnows30261 = new Date("05/06/2024 1:39:43 PM"); if(CountSteppers30261>0) ddiffs30261 = new Date(dnows30261-dthens30261); else ddiffs30261 = new Date(dthens30261-dnows30261); gsecss30261 = Math.floor(ddiffs30261.valueOf()/1000); CountBacks30261(gsecss30261);