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 (LeadingZeros30479 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30479(secs) { if (secs < 0) { document.getElementById("cntdwns30479").innerHTML = FinishMessages30479; return; } DisplayStrs30479 = DisplayFormats30479.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30479 = DisplayStrs30479.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30479 = DisplayStrs30479.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30479 = DisplayStrs30479.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30479").innerHTML = DisplayStrs30479; if (CountActives30479) //alert(SetTimeOutPeriods30479); setTimeout("CountBacks30479(" + (secs+CountSteppers30479) + ")", SetTimeOutPeriods30479); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30479)=="undefined") BackColors30479 = ""; if (typeof(ForeColors30479)=="undefined") ForeColors30479= "white"; if (typeof(TargetDates30479)=="undefined") TargetDates30479 = "05/05/2024 10:00:00 PM"; if (typeof(DisplayFormats30479)=="undefined") DisplayFormats30479 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30479)=="undefined") CountActives30479 = true; if (typeof(FinishMessages30479)=="undefined") FinishMessages30479 = ""; if (typeof(CountSteppers30479)!="number") CountSteppers30479 = -1; if (typeof(LeadingZeros30479)=="undefined") LeadingZeros30479 = true; CountSteppers30479 = Math.ceil(CountSteppers30479); if (CountSteppers30479 == 0) CountActives30479 = false; var SetTimeOutPeriods30479 = (Math.abs(CountSteppers30479)-1)*1000 + 990; puti(BackColors30479, ForeColors30479); var dthens30479 = new Date(TargetDates30479); var dnows30479 = new Date("05/19/2024 3:44:19 AM"); if(CountSteppers30479>0) ddiffs30479 = new Date(dnows30479-dthens30479); else ddiffs30479 = new Date(dthens30479-dnows30479); gsecss30479 = Math.floor(ddiffs30479.valueOf()/1000); CountBacks30479(gsecss30479);