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 (LeadingZeros30277 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30277(secs) { if (secs < 0) { document.getElementById("cntdwns30277").innerHTML = FinishMessages30277; return; } DisplayStrs30277 = DisplayFormats30277.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30277 = DisplayStrs30277.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30277 = DisplayStrs30277.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30277 = DisplayStrs30277.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30277").innerHTML = DisplayStrs30277; if (CountActives30277) //alert(SetTimeOutPeriods30277); setTimeout("CountBacks30277(" + (secs+CountSteppers30277) + ")", SetTimeOutPeriods30277); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30277)=="undefined") BackColors30277 = ""; if (typeof(ForeColors30277)=="undefined") ForeColors30277= "white"; if (typeof(TargetDates30277)=="undefined") TargetDates30277 = "04/22/2024 10:00:00 PM"; if (typeof(DisplayFormats30277)=="undefined") DisplayFormats30277 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30277)=="undefined") CountActives30277 = true; if (typeof(FinishMessages30277)=="undefined") FinishMessages30277 = ""; if (typeof(CountSteppers30277)!="number") CountSteppers30277 = -1; if (typeof(LeadingZeros30277)=="undefined") LeadingZeros30277 = true; CountSteppers30277 = Math.ceil(CountSteppers30277); if (CountSteppers30277 == 0) CountActives30277 = false; var SetTimeOutPeriods30277 = (Math.abs(CountSteppers30277)-1)*1000 + 990; puti(BackColors30277, ForeColors30277); var dthens30277 = new Date(TargetDates30277); var dnows30277 = new Date("05/03/2024 5:48:23 AM"); if(CountSteppers30277>0) ddiffs30277 = new Date(dnows30277-dthens30277); else ddiffs30277 = new Date(dthens30277-dnows30277); gsecss30277 = Math.floor(ddiffs30277.valueOf()/1000); CountBacks30277(gsecss30277);