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 (LeadingZeros30350 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30350(secs) { if (secs < 0) { document.getElementById("cntdwns30350").innerHTML = FinishMessages30350; return; } DisplayStrs30350 = DisplayFormats30350.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30350 = DisplayStrs30350.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30350 = DisplayStrs30350.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30350 = DisplayStrs30350.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30350").innerHTML = DisplayStrs30350; if (CountActives30350) //alert(SetTimeOutPeriods30350); setTimeout("CountBacks30350(" + (secs+CountSteppers30350) + ")", SetTimeOutPeriods30350); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30350)=="undefined") BackColors30350 = ""; if (typeof(ForeColors30350)=="undefined") ForeColors30350= "white"; if (typeof(TargetDates30350)=="undefined") TargetDates30350 = "04/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30350)=="undefined") DisplayFormats30350 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30350)=="undefined") CountActives30350 = true; if (typeof(FinishMessages30350)=="undefined") FinishMessages30350 = ""; if (typeof(CountSteppers30350)!="number") CountSteppers30350 = -1; if (typeof(LeadingZeros30350)=="undefined") LeadingZeros30350 = true; CountSteppers30350 = Math.ceil(CountSteppers30350); if (CountSteppers30350 == 0) CountActives30350 = false; var SetTimeOutPeriods30350 = (Math.abs(CountSteppers30350)-1)*1000 + 990; puti(BackColors30350, ForeColors30350); var dthens30350 = new Date(TargetDates30350); var dnows30350 = new Date("05/07/2024 3:55:17 AM"); if(CountSteppers30350>0) ddiffs30350 = new Date(dnows30350-dthens30350); else ddiffs30350 = new Date(dthens30350-dnows30350); gsecss30350 = Math.floor(ddiffs30350.valueOf()/1000); CountBacks30350(gsecss30350);