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 (LeadingZeros29756 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29756(secs) { if (secs < 0) { document.getElementById("cntdwns29756").innerHTML = FinishMessages29756; return; } DisplayStrs29756 = DisplayFormats29756.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29756 = DisplayStrs29756.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29756 = DisplayStrs29756.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29756 = DisplayStrs29756.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29756").innerHTML = DisplayStrs29756; if (CountActives29756) //alert(SetTimeOutPeriods29756); setTimeout("CountBacks29756(" + (secs+CountSteppers29756) + ")", SetTimeOutPeriods29756); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29756)=="undefined") BackColors29756 = ""; if (typeof(ForeColors29756)=="undefined") ForeColors29756= "white"; if (typeof(TargetDates29756)=="undefined") TargetDates29756 = "03/30/2024 9:00:00 PM"; if (typeof(DisplayFormats29756)=="undefined") DisplayFormats29756 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29756)=="undefined") CountActives29756 = true; if (typeof(FinishMessages29756)=="undefined") FinishMessages29756 = ""; if (typeof(CountSteppers29756)!="number") CountSteppers29756 = -1; if (typeof(LeadingZeros29756)=="undefined") LeadingZeros29756 = true; CountSteppers29756 = Math.ceil(CountSteppers29756); if (CountSteppers29756 == 0) CountActives29756 = false; var SetTimeOutPeriods29756 = (Math.abs(CountSteppers29756)-1)*1000 + 990; puti(BackColors29756, ForeColors29756); var dthens29756 = new Date(TargetDates29756); var dnows29756 = new Date("04/27/2024 9:06:32 AM"); if(CountSteppers29756>0) ddiffs29756 = new Date(dnows29756-dthens29756); else ddiffs29756 = new Date(dthens29756-dnows29756); gsecss29756 = Math.floor(ddiffs29756.valueOf()/1000); CountBacks29756(gsecss29756);