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 (LeadingZeros30227 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30227(secs) { if (secs < 0) { document.getElementById("cntdwns30227").innerHTML = FinishMessages30227; return; } DisplayStrs30227 = DisplayFormats30227.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30227 = DisplayStrs30227.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30227 = DisplayStrs30227.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30227 = DisplayStrs30227.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30227").innerHTML = DisplayStrs30227; if (CountActives30227) //alert(SetTimeOutPeriods30227); setTimeout("CountBacks30227(" + (secs+CountSteppers30227) + ")", SetTimeOutPeriods30227); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30227)=="undefined") BackColors30227 = ""; if (typeof(ForeColors30227)=="undefined") ForeColors30227= "white"; if (typeof(TargetDates30227)=="undefined") TargetDates30227 = "04/28/2024 11:00:00 PM"; if (typeof(DisplayFormats30227)=="undefined") DisplayFormats30227 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30227)=="undefined") CountActives30227 = true; if (typeof(FinishMessages30227)=="undefined") FinishMessages30227 = ""; if (typeof(CountSteppers30227)!="number") CountSteppers30227 = -1; if (typeof(LeadingZeros30227)=="undefined") LeadingZeros30227 = true; CountSteppers30227 = Math.ceil(CountSteppers30227); if (CountSteppers30227 == 0) CountActives30227 = false; var SetTimeOutPeriods30227 = (Math.abs(CountSteppers30227)-1)*1000 + 990; puti(BackColors30227, ForeColors30227); var dthens30227 = new Date(TargetDates30227); var dnows30227 = new Date("05/06/2024 5:58:24 PM"); if(CountSteppers30227>0) ddiffs30227 = new Date(dnows30227-dthens30227); else ddiffs30227 = new Date(dthens30227-dnows30227); gsecss30227 = Math.floor(ddiffs30227.valueOf()/1000); CountBacks30227(gsecss30227);