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 (LeadingZeros30143 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30143(secs) { if (secs < 0) { document.getElementById("cntdwns30143").innerHTML = FinishMessages30143; return; } DisplayStrs30143 = DisplayFormats30143.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30143 = DisplayStrs30143.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30143 = DisplayStrs30143.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30143 = DisplayStrs30143.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30143").innerHTML = DisplayStrs30143; if (CountActives30143) //alert(SetTimeOutPeriods30143); setTimeout("CountBacks30143(" + (secs+CountSteppers30143) + ")", SetTimeOutPeriods30143); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30143)=="undefined") BackColors30143 = ""; if (typeof(ForeColors30143)=="undefined") ForeColors30143= "white"; if (typeof(TargetDates30143)=="undefined") TargetDates30143 = "04/23/2024 11:00:00 PM"; if (typeof(DisplayFormats30143)=="undefined") DisplayFormats30143 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30143)=="undefined") CountActives30143 = true; if (typeof(FinishMessages30143)=="undefined") FinishMessages30143 = ""; if (typeof(CountSteppers30143)!="number") CountSteppers30143 = -1; if (typeof(LeadingZeros30143)=="undefined") LeadingZeros30143 = true; CountSteppers30143 = Math.ceil(CountSteppers30143); if (CountSteppers30143 == 0) CountActives30143 = false; var SetTimeOutPeriods30143 = (Math.abs(CountSteppers30143)-1)*1000 + 990; puti(BackColors30143, ForeColors30143); var dthens30143 = new Date(TargetDates30143); var dnows30143 = new Date("05/02/2024 9:22:09 PM"); if(CountSteppers30143>0) ddiffs30143 = new Date(dnows30143-dthens30143); else ddiffs30143 = new Date(dthens30143-dnows30143); gsecss30143 = Math.floor(ddiffs30143.valueOf()/1000); CountBacks30143(gsecss30143);