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 (LeadingZeros30379 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30379(secs) { if (secs < 0) { document.getElementById("cntdwns30379").innerHTML = FinishMessages30379; return; } DisplayStrs30379 = DisplayFormats30379.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30379 = DisplayStrs30379.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30379 = DisplayStrs30379.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30379 = DisplayStrs30379.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30379").innerHTML = DisplayStrs30379; if (CountActives30379) //alert(SetTimeOutPeriods30379); setTimeout("CountBacks30379(" + (secs+CountSteppers30379) + ")", SetTimeOutPeriods30379); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30379)=="undefined") BackColors30379 = ""; if (typeof(ForeColors30379)=="undefined") ForeColors30379= "white"; if (typeof(TargetDates30379)=="undefined") TargetDates30379 = "04/28/2024 10:00:00 PM"; if (typeof(DisplayFormats30379)=="undefined") DisplayFormats30379 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30379)=="undefined") CountActives30379 = true; if (typeof(FinishMessages30379)=="undefined") FinishMessages30379 = ""; if (typeof(CountSteppers30379)!="number") CountSteppers30379 = -1; if (typeof(LeadingZeros30379)=="undefined") LeadingZeros30379 = true; CountSteppers30379 = Math.ceil(CountSteppers30379); if (CountSteppers30379 == 0) CountActives30379 = false; var SetTimeOutPeriods30379 = (Math.abs(CountSteppers30379)-1)*1000 + 990; puti(BackColors30379, ForeColors30379); var dthens30379 = new Date(TargetDates30379); var dnows30379 = new Date("05/05/2024 6:37:56 AM"); if(CountSteppers30379>0) ddiffs30379 = new Date(dnows30379-dthens30379); else ddiffs30379 = new Date(dthens30379-dnows30379); gsecss30379 = Math.floor(ddiffs30379.valueOf()/1000); CountBacks30379(gsecss30379);