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 (LeadingZeros30348 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30348(secs) { if (secs < 0) { document.getElementById("cntdwns30348").innerHTML = FinishMessages30348; return; } DisplayStrs30348 = DisplayFormats30348.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30348 = DisplayStrs30348.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30348 = DisplayStrs30348.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30348 = DisplayStrs30348.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30348").innerHTML = DisplayStrs30348; if (CountActives30348) //alert(SetTimeOutPeriods30348); setTimeout("CountBacks30348(" + (secs+CountSteppers30348) + ")", SetTimeOutPeriods30348); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30348)=="undefined") BackColors30348 = ""; if (typeof(ForeColors30348)=="undefined") ForeColors30348= "white"; if (typeof(TargetDates30348)=="undefined") TargetDates30348 = "04/25/2024 10:00:00 PM"; if (typeof(DisplayFormats30348)=="undefined") DisplayFormats30348 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30348)=="undefined") CountActives30348 = true; if (typeof(FinishMessages30348)=="undefined") FinishMessages30348 = ""; if (typeof(CountSteppers30348)!="number") CountSteppers30348 = -1; if (typeof(LeadingZeros30348)=="undefined") LeadingZeros30348 = true; CountSteppers30348 = Math.ceil(CountSteppers30348); if (CountSteppers30348 == 0) CountActives30348 = false; var SetTimeOutPeriods30348 = (Math.abs(CountSteppers30348)-1)*1000 + 990; puti(BackColors30348, ForeColors30348); var dthens30348 = new Date(TargetDates30348); var dnows30348 = new Date("05/03/2024 11:22:56 PM"); if(CountSteppers30348>0) ddiffs30348 = new Date(dnows30348-dthens30348); else ddiffs30348 = new Date(dthens30348-dnows30348); gsecss30348 = Math.floor(ddiffs30348.valueOf()/1000); CountBacks30348(gsecss30348);