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 (LeadingZeros30469 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30469(secs) { if (secs < 0) { document.getElementById("cntdwns30469").innerHTML = FinishMessages30469; return; } DisplayStrs30469 = DisplayFormats30469.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30469 = DisplayStrs30469.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30469 = DisplayStrs30469.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30469 = DisplayStrs30469.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30469").innerHTML = DisplayStrs30469; if (CountActives30469) //alert(SetTimeOutPeriods30469); setTimeout("CountBacks30469(" + (secs+CountSteppers30469) + ")", SetTimeOutPeriods30469); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30469)=="undefined") BackColors30469 = ""; if (typeof(ForeColors30469)=="undefined") ForeColors30469= "white"; if (typeof(TargetDates30469)=="undefined") TargetDates30469 = "05/01/2024 10:00:00 PM"; if (typeof(DisplayFormats30469)=="undefined") DisplayFormats30469 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30469)=="undefined") CountActives30469 = true; if (typeof(FinishMessages30469)=="undefined") FinishMessages30469 = ""; if (typeof(CountSteppers30469)!="number") CountSteppers30469 = -1; if (typeof(LeadingZeros30469)=="undefined") LeadingZeros30469 = true; CountSteppers30469 = Math.ceil(CountSteppers30469); if (CountSteppers30469 == 0) CountActives30469 = false; var SetTimeOutPeriods30469 = (Math.abs(CountSteppers30469)-1)*1000 + 990; puti(BackColors30469, ForeColors30469); var dthens30469 = new Date(TargetDates30469); var dnows30469 = new Date("05/15/2024 6:42:33 AM"); if(CountSteppers30469>0) ddiffs30469 = new Date(dnows30469-dthens30469); else ddiffs30469 = new Date(dthens30469-dnows30469); gsecss30469 = Math.floor(ddiffs30469.valueOf()/1000); CountBacks30469(gsecss30469);