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 (LeadingZeros30097 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30097(secs) { if (secs < 0) { document.getElementById("cntdwns30097").innerHTML = FinishMessages30097; return; } DisplayStrs30097 = DisplayFormats30097.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30097 = DisplayStrs30097.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30097 = DisplayStrs30097.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30097 = DisplayStrs30097.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30097").innerHTML = DisplayStrs30097; if (CountActives30097) //alert(SetTimeOutPeriods30097); setTimeout("CountBacks30097(" + (secs+CountSteppers30097) + ")", SetTimeOutPeriods30097); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30097)=="undefined") BackColors30097 = ""; if (typeof(ForeColors30097)=="undefined") ForeColors30097= "white"; if (typeof(TargetDates30097)=="undefined") TargetDates30097 = "04/26/2024 11:00:00 PM"; if (typeof(DisplayFormats30097)=="undefined") DisplayFormats30097 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30097)=="undefined") CountActives30097 = true; if (typeof(FinishMessages30097)=="undefined") FinishMessages30097 = ""; if (typeof(CountSteppers30097)!="number") CountSteppers30097 = -1; if (typeof(LeadingZeros30097)=="undefined") LeadingZeros30097 = true; CountSteppers30097 = Math.ceil(CountSteppers30097); if (CountSteppers30097 == 0) CountActives30097 = false; var SetTimeOutPeriods30097 = (Math.abs(CountSteppers30097)-1)*1000 + 990; puti(BackColors30097, ForeColors30097); var dthens30097 = new Date(TargetDates30097); var dnows30097 = new Date("05/03/2024 11:57:30 PM"); if(CountSteppers30097>0) ddiffs30097 = new Date(dnows30097-dthens30097); else ddiffs30097 = new Date(dthens30097-dnows30097); gsecss30097 = Math.floor(ddiffs30097.valueOf()/1000); CountBacks30097(gsecss30097);