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 (LeadingZeros30269 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30269(secs) { if (secs < 0) { document.getElementById("cntdwns30269").innerHTML = FinishMessages30269; return; } DisplayStrs30269 = DisplayFormats30269.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30269 = DisplayStrs30269.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30269 = DisplayStrs30269.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30269 = DisplayStrs30269.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30269").innerHTML = DisplayStrs30269; if (CountActives30269) //alert(SetTimeOutPeriods30269); setTimeout("CountBacks30269(" + (secs+CountSteppers30269) + ")", SetTimeOutPeriods30269); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30269)=="undefined") BackColors30269 = ""; if (typeof(ForeColors30269)=="undefined") ForeColors30269= "white"; if (typeof(TargetDates30269)=="undefined") TargetDates30269 = "04/22/2024 10:00:00 PM"; if (typeof(DisplayFormats30269)=="undefined") DisplayFormats30269 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30269)=="undefined") CountActives30269 = true; if (typeof(FinishMessages30269)=="undefined") FinishMessages30269 = ""; if (typeof(CountSteppers30269)!="number") CountSteppers30269 = -1; if (typeof(LeadingZeros30269)=="undefined") LeadingZeros30269 = true; CountSteppers30269 = Math.ceil(CountSteppers30269); if (CountSteppers30269 == 0) CountActives30269 = false; var SetTimeOutPeriods30269 = (Math.abs(CountSteppers30269)-1)*1000 + 990; puti(BackColors30269, ForeColors30269); var dthens30269 = new Date(TargetDates30269); var dnows30269 = new Date("05/02/2024 11:10:37 PM"); if(CountSteppers30269>0) ddiffs30269 = new Date(dnows30269-dthens30269); else ddiffs30269 = new Date(dthens30269-dnows30269); gsecss30269 = Math.floor(ddiffs30269.valueOf()/1000); CountBacks30269(gsecss30269);