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 (LeadingZeros30410 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30410(secs) { if (secs < 0) { document.getElementById("cntdwns30410").innerHTML = FinishMessages30410; return; } DisplayStrs30410 = DisplayFormats30410.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30410 = DisplayStrs30410.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30410 = DisplayStrs30410.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30410 = DisplayStrs30410.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30410").innerHTML = DisplayStrs30410; if (CountActives30410) //alert(SetTimeOutPeriods30410); setTimeout("CountBacks30410(" + (secs+CountSteppers30410) + ")", SetTimeOutPeriods30410); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30410)=="undefined") BackColors30410 = ""; if (typeof(ForeColors30410)=="undefined") ForeColors30410= "white"; if (typeof(TargetDates30410)=="undefined") TargetDates30410 = "04/26/2024 10:00:00 PM"; if (typeof(DisplayFormats30410)=="undefined") DisplayFormats30410 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30410)=="undefined") CountActives30410 = true; if (typeof(FinishMessages30410)=="undefined") FinishMessages30410 = ""; if (typeof(CountSteppers30410)!="number") CountSteppers30410 = -1; if (typeof(LeadingZeros30410)=="undefined") LeadingZeros30410 = true; CountSteppers30410 = Math.ceil(CountSteppers30410); if (CountSteppers30410 == 0) CountActives30410 = false; var SetTimeOutPeriods30410 = (Math.abs(CountSteppers30410)-1)*1000 + 990; puti(BackColors30410, ForeColors30410); var dthens30410 = new Date(TargetDates30410); var dnows30410 = new Date("05/06/2024 7:54:24 AM"); if(CountSteppers30410>0) ddiffs30410 = new Date(dnows30410-dthens30410); else ddiffs30410 = new Date(dthens30410-dnows30410); gsecss30410 = Math.floor(ddiffs30410.valueOf()/1000); CountBacks30410(gsecss30410);