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 (LeadingZeros30496 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30496(secs) { if (secs < 0) { document.getElementById("cntdwns30496").innerHTML = FinishMessages30496; return; } DisplayStrs30496 = DisplayFormats30496.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30496 = DisplayStrs30496.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30496 = DisplayStrs30496.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30496 = DisplayStrs30496.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30496").innerHTML = DisplayStrs30496; if (CountActives30496) //alert(SetTimeOutPeriods30496); setTimeout("CountBacks30496(" + (secs+CountSteppers30496) + ")", SetTimeOutPeriods30496); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30496)=="undefined") BackColors30496 = ""; if (typeof(ForeColors30496)=="undefined") ForeColors30496= "white"; if (typeof(TargetDates30496)=="undefined") TargetDates30496 = "05/12/2024 10:00:00 PM"; if (typeof(DisplayFormats30496)=="undefined") DisplayFormats30496 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30496)=="undefined") CountActives30496 = true; if (typeof(FinishMessages30496)=="undefined") FinishMessages30496 = ""; if (typeof(CountSteppers30496)!="number") CountSteppers30496 = -1; if (typeof(LeadingZeros30496)=="undefined") LeadingZeros30496 = true; CountSteppers30496 = Math.ceil(CountSteppers30496); if (CountSteppers30496 == 0) CountActives30496 = false; var SetTimeOutPeriods30496 = (Math.abs(CountSteppers30496)-1)*1000 + 990; puti(BackColors30496, ForeColors30496); var dthens30496 = new Date(TargetDates30496); var dnows30496 = new Date("05/20/2024 2:07:46 PM"); if(CountSteppers30496>0) ddiffs30496 = new Date(dnows30496-dthens30496); else ddiffs30496 = new Date(dthens30496-dnows30496); gsecss30496 = Math.floor(ddiffs30496.valueOf()/1000); CountBacks30496(gsecss30496);