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 (LeadingZeros30393 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30393(secs) { if (secs < 0) { document.getElementById("cntdwns30393").innerHTML = FinishMessages30393; return; } DisplayStrs30393 = DisplayFormats30393.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30393 = DisplayStrs30393.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30393 = DisplayStrs30393.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30393 = DisplayStrs30393.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30393").innerHTML = DisplayStrs30393; if (CountActives30393) //alert(SetTimeOutPeriods30393); setTimeout("CountBacks30393(" + (secs+CountSteppers30393) + ")", SetTimeOutPeriods30393); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30393)=="undefined") BackColors30393 = ""; if (typeof(ForeColors30393)=="undefined") ForeColors30393= "white"; if (typeof(TargetDates30393)=="undefined") TargetDates30393 = "04/22/2024 10:00:00 PM"; if (typeof(DisplayFormats30393)=="undefined") DisplayFormats30393 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30393)=="undefined") CountActives30393 = true; if (typeof(FinishMessages30393)=="undefined") FinishMessages30393 = ""; if (typeof(CountSteppers30393)!="number") CountSteppers30393 = -1; if (typeof(LeadingZeros30393)=="undefined") LeadingZeros30393 = true; CountSteppers30393 = Math.ceil(CountSteppers30393); if (CountSteppers30393 == 0) CountActives30393 = false; var SetTimeOutPeriods30393 = (Math.abs(CountSteppers30393)-1)*1000 + 990; puti(BackColors30393, ForeColors30393); var dthens30393 = new Date(TargetDates30393); var dnows30393 = new Date("05/02/2024 10:11:54 PM"); if(CountSteppers30393>0) ddiffs30393 = new Date(dnows30393-dthens30393); else ddiffs30393 = new Date(dthens30393-dnows30393); gsecss30393 = Math.floor(ddiffs30393.valueOf()/1000); CountBacks30393(gsecss30393);