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 (LeadingZeros30465 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30465(secs) { if (secs < 0) { document.getElementById("cntdwns30465").innerHTML = FinishMessages30465; return; } DisplayStrs30465 = DisplayFormats30465.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30465 = DisplayStrs30465.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30465 = DisplayStrs30465.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30465 = DisplayStrs30465.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30465").innerHTML = DisplayStrs30465; if (CountActives30465) //alert(SetTimeOutPeriods30465); setTimeout("CountBacks30465(" + (secs+CountSteppers30465) + ")", SetTimeOutPeriods30465); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30465)=="undefined") BackColors30465 = ""; if (typeof(ForeColors30465)=="undefined") ForeColors30465= "white"; if (typeof(TargetDates30465)=="undefined") TargetDates30465 = "04/28/2024 10:00:00 PM"; if (typeof(DisplayFormats30465)=="undefined") DisplayFormats30465 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30465)=="undefined") CountActives30465 = true; if (typeof(FinishMessages30465)=="undefined") FinishMessages30465 = ""; if (typeof(CountSteppers30465)!="number") CountSteppers30465 = -1; if (typeof(LeadingZeros30465)=="undefined") LeadingZeros30465 = true; CountSteppers30465 = Math.ceil(CountSteppers30465); if (CountSteppers30465 == 0) CountActives30465 = false; var SetTimeOutPeriods30465 = (Math.abs(CountSteppers30465)-1)*1000 + 990; puti(BackColors30465, ForeColors30465); var dthens30465 = new Date(TargetDates30465); var dnows30465 = new Date("05/04/2024 10:56:17 PM"); if(CountSteppers30465>0) ddiffs30465 = new Date(dnows30465-dthens30465); else ddiffs30465 = new Date(dthens30465-dnows30465); gsecss30465 = Math.floor(ddiffs30465.valueOf()/1000); CountBacks30465(gsecss30465);