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 (LeadingZeros30202 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30202(secs) { if (secs < 0) { document.getElementById("cntdwns30202").innerHTML = FinishMessages30202; return; } DisplayStrs30202 = DisplayFormats30202.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30202 = DisplayStrs30202.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30202 = DisplayStrs30202.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30202 = DisplayStrs30202.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30202").innerHTML = DisplayStrs30202; if (CountActives30202) //alert(SetTimeOutPeriods30202); setTimeout("CountBacks30202(" + (secs+CountSteppers30202) + ")", SetTimeOutPeriods30202); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30202)=="undefined") BackColors30202 = ""; if (typeof(ForeColors30202)=="undefined") ForeColors30202= "white"; if (typeof(TargetDates30202)=="undefined") TargetDates30202 = "04/19/2024 11:00:00 PM"; if (typeof(DisplayFormats30202)=="undefined") DisplayFormats30202 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30202)=="undefined") CountActives30202 = true; if (typeof(FinishMessages30202)=="undefined") FinishMessages30202 = ""; if (typeof(CountSteppers30202)!="number") CountSteppers30202 = -1; if (typeof(LeadingZeros30202)=="undefined") LeadingZeros30202 = true; CountSteppers30202 = Math.ceil(CountSteppers30202); if (CountSteppers30202 == 0) CountActives30202 = false; var SetTimeOutPeriods30202 = (Math.abs(CountSteppers30202)-1)*1000 + 990; puti(BackColors30202, ForeColors30202); var dthens30202 = new Date(TargetDates30202); var dnows30202 = new Date("04/29/2024 6:52:38 PM"); if(CountSteppers30202>0) ddiffs30202 = new Date(dnows30202-dthens30202); else ddiffs30202 = new Date(dthens30202-dnows30202); gsecss30202 = Math.floor(ddiffs30202.valueOf()/1000); CountBacks30202(gsecss30202);