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 (LeadingZeros30464 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30464(secs) { if (secs < 0) { document.getElementById("cntdwns30464").innerHTML = FinishMessages30464; return; } DisplayStrs30464 = DisplayFormats30464.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30464 = DisplayStrs30464.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30464 = DisplayStrs30464.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30464 = DisplayStrs30464.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30464").innerHTML = DisplayStrs30464; if (CountActives30464) //alert(SetTimeOutPeriods30464); setTimeout("CountBacks30464(" + (secs+CountSteppers30464) + ")", SetTimeOutPeriods30464); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30464)=="undefined") BackColors30464 = ""; if (typeof(ForeColors30464)=="undefined") ForeColors30464= "white"; if (typeof(TargetDates30464)=="undefined") TargetDates30464 = "04/30/2024 10:00:00 PM"; if (typeof(DisplayFormats30464)=="undefined") DisplayFormats30464 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30464)=="undefined") CountActives30464 = true; if (typeof(FinishMessages30464)=="undefined") FinishMessages30464 = ""; if (typeof(CountSteppers30464)!="number") CountSteppers30464 = -1; if (typeof(LeadingZeros30464)=="undefined") LeadingZeros30464 = true; CountSteppers30464 = Math.ceil(CountSteppers30464); if (CountSteppers30464 == 0) CountActives30464 = false; var SetTimeOutPeriods30464 = (Math.abs(CountSteppers30464)-1)*1000 + 990; puti(BackColors30464, ForeColors30464); var dthens30464 = new Date(TargetDates30464); var dnows30464 = new Date("05/10/2024 5:34:19 AM"); if(CountSteppers30464>0) ddiffs30464 = new Date(dnows30464-dthens30464); else ddiffs30464 = new Date(dthens30464-dnows30464); gsecss30464 = Math.floor(ddiffs30464.valueOf()/1000); CountBacks30464(gsecss30464);