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 (LeadingZeros30292 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30292(secs) { if (secs < 0) { document.getElementById("cntdwns30292").innerHTML = FinishMessages30292; return; } DisplayStrs30292 = DisplayFormats30292.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30292 = DisplayStrs30292.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30292 = DisplayStrs30292.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30292 = DisplayStrs30292.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30292").innerHTML = DisplayStrs30292; if (CountActives30292) //alert(SetTimeOutPeriods30292); setTimeout("CountBacks30292(" + (secs+CountSteppers30292) + ")", SetTimeOutPeriods30292); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30292)=="undefined") BackColors30292 = ""; if (typeof(ForeColors30292)=="undefined") ForeColors30292= "white"; if (typeof(TargetDates30292)=="undefined") TargetDates30292 = "04/22/2024 10:00:00 PM"; if (typeof(DisplayFormats30292)=="undefined") DisplayFormats30292 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30292)=="undefined") CountActives30292 = true; if (typeof(FinishMessages30292)=="undefined") FinishMessages30292 = ""; if (typeof(CountSteppers30292)!="number") CountSteppers30292 = -1; if (typeof(LeadingZeros30292)=="undefined") LeadingZeros30292 = true; CountSteppers30292 = Math.ceil(CountSteppers30292); if (CountSteppers30292 == 0) CountActives30292 = false; var SetTimeOutPeriods30292 = (Math.abs(CountSteppers30292)-1)*1000 + 990; puti(BackColors30292, ForeColors30292); var dthens30292 = new Date(TargetDates30292); var dnows30292 = new Date("05/03/2024 9:56:02 AM"); if(CountSteppers30292>0) ddiffs30292 = new Date(dnows30292-dthens30292); else ddiffs30292 = new Date(dthens30292-dnows30292); gsecss30292 = Math.floor(ddiffs30292.valueOf()/1000); CountBacks30292(gsecss30292);