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 (LeadingZeros30076 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30076(secs) { if (secs < 0) { document.getElementById("cntdwns30076").innerHTML = FinishMessages30076; return; } DisplayStrs30076 = DisplayFormats30076.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30076 = DisplayStrs30076.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30076 = DisplayStrs30076.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30076 = DisplayStrs30076.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30076").innerHTML = DisplayStrs30076; if (CountActives30076) //alert(SetTimeOutPeriods30076); setTimeout("CountBacks30076(" + (secs+CountSteppers30076) + ")", SetTimeOutPeriods30076); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30076)=="undefined") BackColors30076 = ""; if (typeof(ForeColors30076)=="undefined") ForeColors30076= "white"; if (typeof(TargetDates30076)=="undefined") TargetDates30076 = "04/30/2024 11:00:00 PM"; if (typeof(DisplayFormats30076)=="undefined") DisplayFormats30076 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30076)=="undefined") CountActives30076 = true; if (typeof(FinishMessages30076)=="undefined") FinishMessages30076 = ""; if (typeof(CountSteppers30076)!="number") CountSteppers30076 = -1; if (typeof(LeadingZeros30076)=="undefined") LeadingZeros30076 = true; CountSteppers30076 = Math.ceil(CountSteppers30076); if (CountSteppers30076 == 0) CountActives30076 = false; var SetTimeOutPeriods30076 = (Math.abs(CountSteppers30076)-1)*1000 + 990; puti(BackColors30076, ForeColors30076); var dthens30076 = new Date(TargetDates30076); var dnows30076 = new Date("05/08/2024 11:34:44 AM"); if(CountSteppers30076>0) ddiffs30076 = new Date(dnows30076-dthens30076); else ddiffs30076 = new Date(dthens30076-dnows30076); gsecss30076 = Math.floor(ddiffs30076.valueOf()/1000); CountBacks30076(gsecss30076);