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 (LeadingZeros30351 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30351(secs) { if (secs < 0) { document.getElementById("cntdwns30351").innerHTML = FinishMessages30351; return; } DisplayStrs30351 = DisplayFormats30351.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30351 = DisplayStrs30351.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30351 = DisplayStrs30351.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30351 = DisplayStrs30351.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30351").innerHTML = DisplayStrs30351; if (CountActives30351) //alert(SetTimeOutPeriods30351); setTimeout("CountBacks30351(" + (secs+CountSteppers30351) + ")", SetTimeOutPeriods30351); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30351)=="undefined") BackColors30351 = ""; if (typeof(ForeColors30351)=="undefined") ForeColors30351= "white"; if (typeof(TargetDates30351)=="undefined") TargetDates30351 = "04/28/2024 10:00:00 PM"; if (typeof(DisplayFormats30351)=="undefined") DisplayFormats30351 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30351)=="undefined") CountActives30351 = true; if (typeof(FinishMessages30351)=="undefined") FinishMessages30351 = ""; if (typeof(CountSteppers30351)!="number") CountSteppers30351 = -1; if (typeof(LeadingZeros30351)=="undefined") LeadingZeros30351 = true; CountSteppers30351 = Math.ceil(CountSteppers30351); if (CountSteppers30351 == 0) CountActives30351 = false; var SetTimeOutPeriods30351 = (Math.abs(CountSteppers30351)-1)*1000 + 990; puti(BackColors30351, ForeColors30351); var dthens30351 = new Date(TargetDates30351); var dnows30351 = new Date("05/07/2024 3:27:47 PM"); if(CountSteppers30351>0) ddiffs30351 = new Date(dnows30351-dthens30351); else ddiffs30351 = new Date(dthens30351-dnows30351); gsecss30351 = Math.floor(ddiffs30351.valueOf()/1000); CountBacks30351(gsecss30351);