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 (LeadingZeros30359 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30359(secs) { if (secs < 0) { document.getElementById("cntdwns30359").innerHTML = FinishMessages30359; return; } DisplayStrs30359 = DisplayFormats30359.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30359 = DisplayStrs30359.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30359 = DisplayStrs30359.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30359 = DisplayStrs30359.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30359").innerHTML = DisplayStrs30359; if (CountActives30359) //alert(SetTimeOutPeriods30359); setTimeout("CountBacks30359(" + (secs+CountSteppers30359) + ")", SetTimeOutPeriods30359); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30359)=="undefined") BackColors30359 = ""; if (typeof(ForeColors30359)=="undefined") ForeColors30359= "white"; if (typeof(TargetDates30359)=="undefined") TargetDates30359 = "04/27/2024 10:00:00 PM"; if (typeof(DisplayFormats30359)=="undefined") DisplayFormats30359 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30359)=="undefined") CountActives30359 = true; if (typeof(FinishMessages30359)=="undefined") FinishMessages30359 = ""; if (typeof(CountSteppers30359)!="number") CountSteppers30359 = -1; if (typeof(LeadingZeros30359)=="undefined") LeadingZeros30359 = true; CountSteppers30359 = Math.ceil(CountSteppers30359); if (CountSteppers30359 == 0) CountActives30359 = false; var SetTimeOutPeriods30359 = (Math.abs(CountSteppers30359)-1)*1000 + 990; puti(BackColors30359, ForeColors30359); var dthens30359 = new Date(TargetDates30359); var dnows30359 = new Date("05/04/2024 7:59:16 PM"); if(CountSteppers30359>0) ddiffs30359 = new Date(dnows30359-dthens30359); else ddiffs30359 = new Date(dthens30359-dnows30359); gsecss30359 = Math.floor(ddiffs30359.valueOf()/1000); CountBacks30359(gsecss30359);