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 (LeadingZeros30538 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30538(secs) { if (secs < 0) { document.getElementById("cntdwns30538").innerHTML = FinishMessages30538; return; } DisplayStrs30538 = DisplayFormats30538.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30538 = DisplayStrs30538.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30538 = DisplayStrs30538.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30538 = DisplayStrs30538.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30538").innerHTML = DisplayStrs30538; if (CountActives30538) //alert(SetTimeOutPeriods30538); setTimeout("CountBacks30538(" + (secs+CountSteppers30538) + ")", SetTimeOutPeriods30538); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30538)=="undefined") BackColors30538 = ""; if (typeof(ForeColors30538)=="undefined") ForeColors30538= "white"; if (typeof(TargetDates30538)=="undefined") TargetDates30538 = "05/25/2024 9:00:00 PM"; if (typeof(DisplayFormats30538)=="undefined") DisplayFormats30538 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30538)=="undefined") CountActives30538 = true; if (typeof(FinishMessages30538)=="undefined") FinishMessages30538 = ""; if (typeof(CountSteppers30538)!="number") CountSteppers30538 = -1; if (typeof(LeadingZeros30538)=="undefined") LeadingZeros30538 = true; CountSteppers30538 = Math.ceil(CountSteppers30538); if (CountSteppers30538 == 0) CountActives30538 = false; var SetTimeOutPeriods30538 = (Math.abs(CountSteppers30538)-1)*1000 + 990; puti(BackColors30538, ForeColors30538); var dthens30538 = new Date(TargetDates30538); var dnows30538 = new Date("06/16/2024 11:28:31 AM"); if(CountSteppers30538>0) ddiffs30538 = new Date(dnows30538-dthens30538); else ddiffs30538 = new Date(dthens30538-dnows30538); gsecss30538 = Math.floor(ddiffs30538.valueOf()/1000); CountBacks30538(gsecss30538);