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 (LeadingZeros30264 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30264(secs) { if (secs < 0) { document.getElementById("cntdwns30264").innerHTML = FinishMessages30264; return; } DisplayStrs30264 = DisplayFormats30264.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30264 = DisplayStrs30264.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30264 = DisplayStrs30264.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30264 = DisplayStrs30264.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30264").innerHTML = DisplayStrs30264; if (CountActives30264) //alert(SetTimeOutPeriods30264); setTimeout("CountBacks30264(" + (secs+CountSteppers30264) + ")", SetTimeOutPeriods30264); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30264)=="undefined") BackColors30264 = ""; if (typeof(ForeColors30264)=="undefined") ForeColors30264= "white"; if (typeof(TargetDates30264)=="undefined") TargetDates30264 = "04/26/2024 10:00:00 PM"; if (typeof(DisplayFormats30264)=="undefined") DisplayFormats30264 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30264)=="undefined") CountActives30264 = true; if (typeof(FinishMessages30264)=="undefined") FinishMessages30264 = ""; if (typeof(CountSteppers30264)!="number") CountSteppers30264 = -1; if (typeof(LeadingZeros30264)=="undefined") LeadingZeros30264 = true; CountSteppers30264 = Math.ceil(CountSteppers30264); if (CountSteppers30264 == 0) CountActives30264 = false; var SetTimeOutPeriods30264 = (Math.abs(CountSteppers30264)-1)*1000 + 990; puti(BackColors30264, ForeColors30264); var dthens30264 = new Date(TargetDates30264); var dnows30264 = new Date("05/03/2024 8:32:43 PM"); if(CountSteppers30264>0) ddiffs30264 = new Date(dnows30264-dthens30264); else ddiffs30264 = new Date(dthens30264-dnows30264); gsecss30264 = Math.floor(ddiffs30264.valueOf()/1000); CountBacks30264(gsecss30264);