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 (LeadingZeros29573 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29573(secs) { if (secs < 0) { document.getElementById("cntdwns29573").innerHTML = FinishMessages29573; return; } DisplayStrs29573 = DisplayFormats29573.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29573 = DisplayStrs29573.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29573 = DisplayStrs29573.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29573 = DisplayStrs29573.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29573").innerHTML = DisplayStrs29573; if (CountActives29573) //alert(SetTimeOutPeriods29573); setTimeout("CountBacks29573(" + (secs+CountSteppers29573) + ")", SetTimeOutPeriods29573); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29573)=="undefined") BackColors29573 = ""; if (typeof(ForeColors29573)=="undefined") ForeColors29573= "white"; if (typeof(TargetDates29573)=="undefined") TargetDates29573 = "04/30/2024 11:00:00 PM"; if (typeof(DisplayFormats29573)=="undefined") DisplayFormats29573 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29573)=="undefined") CountActives29573 = true; if (typeof(FinishMessages29573)=="undefined") FinishMessages29573 = ""; if (typeof(CountSteppers29573)!="number") CountSteppers29573 = -1; if (typeof(LeadingZeros29573)=="undefined") LeadingZeros29573 = true; CountSteppers29573 = Math.ceil(CountSteppers29573); if (CountSteppers29573 == 0) CountActives29573 = false; var SetTimeOutPeriods29573 = (Math.abs(CountSteppers29573)-1)*1000 + 990; puti(BackColors29573, ForeColors29573); var dthens29573 = new Date(TargetDates29573); var dnows29573 = new Date("05/14/2024 7:03:00 AM"); if(CountSteppers29573>0) ddiffs29573 = new Date(dnows29573-dthens29573); else ddiffs29573 = new Date(dthens29573-dnows29573); gsecss29573 = Math.floor(ddiffs29573.valueOf()/1000); CountBacks29573(gsecss29573);