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 (LeadingZeros30023 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30023(secs) { if (secs < 0) { document.getElementById("cntdwns30023").innerHTML = FinishMessages30023; return; } DisplayStrs30023 = DisplayFormats30023.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30023 = DisplayStrs30023.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30023 = DisplayStrs30023.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30023 = DisplayStrs30023.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30023").innerHTML = DisplayStrs30023; if (CountActives30023) //alert(SetTimeOutPeriods30023); setTimeout("CountBacks30023(" + (secs+CountSteppers30023) + ")", SetTimeOutPeriods30023); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30023)=="undefined") BackColors30023 = ""; if (typeof(ForeColors30023)=="undefined") ForeColors30023= "white"; if (typeof(TargetDates30023)=="undefined") TargetDates30023 = "04/25/2024 11:00:00 PM"; if (typeof(DisplayFormats30023)=="undefined") DisplayFormats30023 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30023)=="undefined") CountActives30023 = true; if (typeof(FinishMessages30023)=="undefined") FinishMessages30023 = ""; if (typeof(CountSteppers30023)!="number") CountSteppers30023 = -1; if (typeof(LeadingZeros30023)=="undefined") LeadingZeros30023 = true; CountSteppers30023 = Math.ceil(CountSteppers30023); if (CountSteppers30023 == 0) CountActives30023 = false; var SetTimeOutPeriods30023 = (Math.abs(CountSteppers30023)-1)*1000 + 990; puti(BackColors30023, ForeColors30023); var dthens30023 = new Date(TargetDates30023); var dnows30023 = new Date("05/03/2024 10:01:02 PM"); if(CountSteppers30023>0) ddiffs30023 = new Date(dnows30023-dthens30023); else ddiffs30023 = new Date(dthens30023-dnows30023); gsecss30023 = Math.floor(ddiffs30023.valueOf()/1000); CountBacks30023(gsecss30023);