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 (LeadingZeros30043 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30043(secs) { if (secs < 0) { document.getElementById("cntdwns30043").innerHTML = FinishMessages30043; return; } DisplayStrs30043 = DisplayFormats30043.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30043 = DisplayStrs30043.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30043 = DisplayStrs30043.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30043 = DisplayStrs30043.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30043").innerHTML = DisplayStrs30043; if (CountActives30043) //alert(SetTimeOutPeriods30043); setTimeout("CountBacks30043(" + (secs+CountSteppers30043) + ")", SetTimeOutPeriods30043); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30043)=="undefined") BackColors30043 = ""; if (typeof(ForeColors30043)=="undefined") ForeColors30043= "white"; if (typeof(TargetDates30043)=="undefined") TargetDates30043 = "03/31/2024 11:00:00 PM"; if (typeof(DisplayFormats30043)=="undefined") DisplayFormats30043 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30043)=="undefined") CountActives30043 = true; if (typeof(FinishMessages30043)=="undefined") FinishMessages30043 = ""; if (typeof(CountSteppers30043)!="number") CountSteppers30043 = -1; if (typeof(LeadingZeros30043)=="undefined") LeadingZeros30043 = true; CountSteppers30043 = Math.ceil(CountSteppers30043); if (CountSteppers30043 == 0) CountActives30043 = false; var SetTimeOutPeriods30043 = (Math.abs(CountSteppers30043)-1)*1000 + 990; puti(BackColors30043, ForeColors30043); var dthens30043 = new Date(TargetDates30043); var dnows30043 = new Date("04/28/2024 2:22:26 PM"); if(CountSteppers30043>0) ddiffs30043 = new Date(dnows30043-dthens30043); else ddiffs30043 = new Date(dthens30043-dnows30043); gsecss30043 = Math.floor(ddiffs30043.valueOf()/1000); CountBacks30043(gsecss30043);