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 (LeadingZeros30376 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30376(secs) { if (secs < 0) { document.getElementById("cntdwns30376").innerHTML = FinishMessages30376; return; } DisplayStrs30376 = DisplayFormats30376.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30376 = DisplayStrs30376.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30376 = DisplayStrs30376.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30376 = DisplayStrs30376.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30376").innerHTML = DisplayStrs30376; if (CountActives30376) //alert(SetTimeOutPeriods30376); setTimeout("CountBacks30376(" + (secs+CountSteppers30376) + ")", SetTimeOutPeriods30376); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30376)=="undefined") BackColors30376 = ""; if (typeof(ForeColors30376)=="undefined") ForeColors30376= "white"; if (typeof(TargetDates30376)=="undefined") TargetDates30376 = "05/01/2024 10:00:00 PM"; if (typeof(DisplayFormats30376)=="undefined") DisplayFormats30376 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30376)=="undefined") CountActives30376 = true; if (typeof(FinishMessages30376)=="undefined") FinishMessages30376 = ""; if (typeof(CountSteppers30376)!="number") CountSteppers30376 = -1; if (typeof(LeadingZeros30376)=="undefined") LeadingZeros30376 = true; CountSteppers30376 = Math.ceil(CountSteppers30376); if (CountSteppers30376 == 0) CountActives30376 = false; var SetTimeOutPeriods30376 = (Math.abs(CountSteppers30376)-1)*1000 + 990; puti(BackColors30376, ForeColors30376); var dthens30376 = new Date(TargetDates30376); var dnows30376 = new Date("05/15/2024 7:20:23 PM"); if(CountSteppers30376>0) ddiffs30376 = new Date(dnows30376-dthens30376); else ddiffs30376 = new Date(dthens30376-dnows30376); gsecss30376 = Math.floor(ddiffs30376.valueOf()/1000); CountBacks30376(gsecss30376);