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 (LeadingZeros30276 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30276(secs) { if (secs < 0) { document.getElementById("cntdwns30276").innerHTML = FinishMessages30276; return; } DisplayStrs30276 = DisplayFormats30276.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30276 = DisplayStrs30276.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30276 = DisplayStrs30276.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30276 = DisplayStrs30276.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30276").innerHTML = DisplayStrs30276; if (CountActives30276) //alert(SetTimeOutPeriods30276); setTimeout("CountBacks30276(" + (secs+CountSteppers30276) + ")", SetTimeOutPeriods30276); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30276)=="undefined") BackColors30276 = ""; if (typeof(ForeColors30276)=="undefined") ForeColors30276= "white"; if (typeof(TargetDates30276)=="undefined") TargetDates30276 = "04/22/2024 10:00:00 PM"; if (typeof(DisplayFormats30276)=="undefined") DisplayFormats30276 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30276)=="undefined") CountActives30276 = true; if (typeof(FinishMessages30276)=="undefined") FinishMessages30276 = ""; if (typeof(CountSteppers30276)!="number") CountSteppers30276 = -1; if (typeof(LeadingZeros30276)=="undefined") LeadingZeros30276 = true; CountSteppers30276 = Math.ceil(CountSteppers30276); if (CountSteppers30276 == 0) CountActives30276 = false; var SetTimeOutPeriods30276 = (Math.abs(CountSteppers30276)-1)*1000 + 990; puti(BackColors30276, ForeColors30276); var dthens30276 = new Date(TargetDates30276); var dnows30276 = new Date("05/03/2024 1:24:13 AM"); if(CountSteppers30276>0) ddiffs30276 = new Date(dnows30276-dthens30276); else ddiffs30276 = new Date(dthens30276-dnows30276); gsecss30276 = Math.floor(ddiffs30276.valueOf()/1000); CountBacks30276(gsecss30276);