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 (LeadingZeros30460 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30460(secs) { if (secs < 0) { document.getElementById("cntdwns30460").innerHTML = FinishMessages30460; return; } DisplayStrs30460 = DisplayFormats30460.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30460 = DisplayStrs30460.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30460 = DisplayStrs30460.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30460 = DisplayStrs30460.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30460").innerHTML = DisplayStrs30460; if (CountActives30460) //alert(SetTimeOutPeriods30460); setTimeout("CountBacks30460(" + (secs+CountSteppers30460) + ")", SetTimeOutPeriods30460); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30460)=="undefined") BackColors30460 = ""; if (typeof(ForeColors30460)=="undefined") ForeColors30460= "white"; if (typeof(TargetDates30460)=="undefined") TargetDates30460 = "04/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30460)=="undefined") DisplayFormats30460 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30460)=="undefined") CountActives30460 = true; if (typeof(FinishMessages30460)=="undefined") FinishMessages30460 = ""; if (typeof(CountSteppers30460)!="number") CountSteppers30460 = -1; if (typeof(LeadingZeros30460)=="undefined") LeadingZeros30460 = true; CountSteppers30460 = Math.ceil(CountSteppers30460); if (CountSteppers30460 == 0) CountActives30460 = false; var SetTimeOutPeriods30460 = (Math.abs(CountSteppers30460)-1)*1000 + 990; puti(BackColors30460, ForeColors30460); var dthens30460 = new Date(TargetDates30460); var dnows30460 = new Date("05/09/2024 2:53:26 PM"); if(CountSteppers30460>0) ddiffs30460 = new Date(dnows30460-dthens30460); else ddiffs30460 = new Date(dthens30460-dnows30460); gsecss30460 = Math.floor(ddiffs30460.valueOf()/1000); CountBacks30460(gsecss30460);