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 (LeadingZeros30268 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30268(secs) { if (secs < 0) { document.getElementById("cntdwns30268").innerHTML = FinishMessages30268; return; } DisplayStrs30268 = DisplayFormats30268.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30268 = DisplayStrs30268.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30268 = DisplayStrs30268.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30268 = DisplayStrs30268.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30268").innerHTML = DisplayStrs30268; if (CountActives30268) //alert(SetTimeOutPeriods30268); setTimeout("CountBacks30268(" + (secs+CountSteppers30268) + ")", SetTimeOutPeriods30268); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30268)=="undefined") BackColors30268 = ""; if (typeof(ForeColors30268)=="undefined") ForeColors30268= "white"; if (typeof(TargetDates30268)=="undefined") TargetDates30268 = "05/04/2024 10:00:00 PM"; if (typeof(DisplayFormats30268)=="undefined") DisplayFormats30268 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30268)=="undefined") CountActives30268 = true; if (typeof(FinishMessages30268)=="undefined") FinishMessages30268 = ""; if (typeof(CountSteppers30268)!="number") CountSteppers30268 = -1; if (typeof(LeadingZeros30268)=="undefined") LeadingZeros30268 = true; CountSteppers30268 = Math.ceil(CountSteppers30268); if (CountSteppers30268 == 0) CountActives30268 = false; var SetTimeOutPeriods30268 = (Math.abs(CountSteppers30268)-1)*1000 + 990; puti(BackColors30268, ForeColors30268); var dthens30268 = new Date(TargetDates30268); var dnows30268 = new Date("05/17/2024 8:13:44 AM"); if(CountSteppers30268>0) ddiffs30268 = new Date(dnows30268-dthens30268); else ddiffs30268 = new Date(dthens30268-dnows30268); gsecss30268 = Math.floor(ddiffs30268.valueOf()/1000); CountBacks30268(gsecss30268);