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 (LeadingZeros30367 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30367(secs) { if (secs < 0) { document.getElementById("cntdwns30367").innerHTML = FinishMessages30367; return; } DisplayStrs30367 = DisplayFormats30367.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30367 = DisplayStrs30367.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30367 = DisplayStrs30367.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30367 = DisplayStrs30367.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30367").innerHTML = DisplayStrs30367; if (CountActives30367) //alert(SetTimeOutPeriods30367); setTimeout("CountBacks30367(" + (secs+CountSteppers30367) + ")", SetTimeOutPeriods30367); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30367)=="undefined") BackColors30367 = ""; if (typeof(ForeColors30367)=="undefined") ForeColors30367= "white"; if (typeof(TargetDates30367)=="undefined") TargetDates30367 = "04/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30367)=="undefined") DisplayFormats30367 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30367)=="undefined") CountActives30367 = true; if (typeof(FinishMessages30367)=="undefined") FinishMessages30367 = ""; if (typeof(CountSteppers30367)!="number") CountSteppers30367 = -1; if (typeof(LeadingZeros30367)=="undefined") LeadingZeros30367 = true; CountSteppers30367 = Math.ceil(CountSteppers30367); if (CountSteppers30367 == 0) CountActives30367 = false; var SetTimeOutPeriods30367 = (Math.abs(CountSteppers30367)-1)*1000 + 990; puti(BackColors30367, ForeColors30367); var dthens30367 = new Date(TargetDates30367); var dnows30367 = new Date("05/07/2024 7:09:36 AM"); if(CountSteppers30367>0) ddiffs30367 = new Date(dnows30367-dthens30367); else ddiffs30367 = new Date(dthens30367-dnows30367); gsecss30367 = Math.floor(ddiffs30367.valueOf()/1000); CountBacks30367(gsecss30367);