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 (LeadingZeros30325 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30325(secs) { if (secs < 0) { document.getElementById("cntdwns30325").innerHTML = FinishMessages30325; return; } DisplayStrs30325 = DisplayFormats30325.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30325 = DisplayStrs30325.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30325 = DisplayStrs30325.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30325 = DisplayStrs30325.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30325").innerHTML = DisplayStrs30325; if (CountActives30325) //alert(SetTimeOutPeriods30325); setTimeout("CountBacks30325(" + (secs+CountSteppers30325) + ")", SetTimeOutPeriods30325); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30325)=="undefined") BackColors30325 = ""; if (typeof(ForeColors30325)=="undefined") ForeColors30325= "white"; if (typeof(TargetDates30325)=="undefined") TargetDates30325 = "04/23/2024 10:00:00 PM"; if (typeof(DisplayFormats30325)=="undefined") DisplayFormats30325 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30325)=="undefined") CountActives30325 = true; if (typeof(FinishMessages30325)=="undefined") FinishMessages30325 = ""; if (typeof(CountSteppers30325)!="number") CountSteppers30325 = -1; if (typeof(LeadingZeros30325)=="undefined") LeadingZeros30325 = true; CountSteppers30325 = Math.ceil(CountSteppers30325); if (CountSteppers30325 == 0) CountActives30325 = false; var SetTimeOutPeriods30325 = (Math.abs(CountSteppers30325)-1)*1000 + 990; puti(BackColors30325, ForeColors30325); var dthens30325 = new Date(TargetDates30325); var dnows30325 = new Date("05/03/2024 10:40:02 AM"); if(CountSteppers30325>0) ddiffs30325 = new Date(dnows30325-dthens30325); else ddiffs30325 = new Date(dthens30325-dnows30325); gsecss30325 = Math.floor(ddiffs30325.valueOf()/1000); CountBacks30325(gsecss30325);