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 (LeadingZeros29753 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29753(secs) { if (secs < 0) { document.getElementById("cntdwns29753").innerHTML = FinishMessages29753; return; } DisplayStrs29753 = DisplayFormats29753.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29753 = DisplayStrs29753.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29753 = DisplayStrs29753.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29753 = DisplayStrs29753.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29753").innerHTML = DisplayStrs29753; if (CountActives29753) //alert(SetTimeOutPeriods29753); setTimeout("CountBacks29753(" + (secs+CountSteppers29753) + ")", SetTimeOutPeriods29753); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29753)=="undefined") BackColors29753 = ""; if (typeof(ForeColors29753)=="undefined") ForeColors29753= "white"; if (typeof(TargetDates29753)=="undefined") TargetDates29753 = "04/27/2024 11:00:00 PM"; if (typeof(DisplayFormats29753)=="undefined") DisplayFormats29753 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29753)=="undefined") CountActives29753 = true; if (typeof(FinishMessages29753)=="undefined") FinishMessages29753 = ""; if (typeof(CountSteppers29753)!="number") CountSteppers29753 = -1; if (typeof(LeadingZeros29753)=="undefined") LeadingZeros29753 = true; CountSteppers29753 = Math.ceil(CountSteppers29753); if (CountSteppers29753 == 0) CountActives29753 = false; var SetTimeOutPeriods29753 = (Math.abs(CountSteppers29753)-1)*1000 + 990; puti(BackColors29753, ForeColors29753); var dthens29753 = new Date(TargetDates29753); var dnows29753 = new Date("05/06/2024 7:17:01 AM"); if(CountSteppers29753>0) ddiffs29753 = new Date(dnows29753-dthens29753); else ddiffs29753 = new Date(dthens29753-dnows29753); gsecss29753 = Math.floor(ddiffs29753.valueOf()/1000); CountBacks29753(gsecss29753);