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 (LeadingZeros30372 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30372(secs) { if (secs < 0) { document.getElementById("cntdwns30372").innerHTML = FinishMessages30372; return; } DisplayStrs30372 = DisplayFormats30372.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30372 = DisplayStrs30372.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30372 = DisplayStrs30372.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30372 = DisplayStrs30372.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30372").innerHTML = DisplayStrs30372; if (CountActives30372) //alert(SetTimeOutPeriods30372); setTimeout("CountBacks30372(" + (secs+CountSteppers30372) + ")", SetTimeOutPeriods30372); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30372)=="undefined") BackColors30372 = ""; if (typeof(ForeColors30372)=="undefined") ForeColors30372= "white"; if (typeof(TargetDates30372)=="undefined") TargetDates30372 = "04/27/2024 10:00:00 PM"; if (typeof(DisplayFormats30372)=="undefined") DisplayFormats30372 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30372)=="undefined") CountActives30372 = true; if (typeof(FinishMessages30372)=="undefined") FinishMessages30372 = ""; if (typeof(CountSteppers30372)!="number") CountSteppers30372 = -1; if (typeof(LeadingZeros30372)=="undefined") LeadingZeros30372 = true; CountSteppers30372 = Math.ceil(CountSteppers30372); if (CountSteppers30372 == 0) CountActives30372 = false; var SetTimeOutPeriods30372 = (Math.abs(CountSteppers30372)-1)*1000 + 990; puti(BackColors30372, ForeColors30372); var dthens30372 = new Date(TargetDates30372); var dnows30372 = new Date("05/04/2024 9:12:56 PM"); if(CountSteppers30372>0) ddiffs30372 = new Date(dnows30372-dthens30372); else ddiffs30372 = new Date(dthens30372-dnows30372); gsecss30372 = Math.floor(ddiffs30372.valueOf()/1000); CountBacks30372(gsecss30372);