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 (LeadingZeros29953 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29953(secs) { if (secs < 0) { document.getElementById("cntdwns29953").innerHTML = FinishMessages29953; return; } DisplayStrs29953 = DisplayFormats29953.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29953 = DisplayStrs29953.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29953 = DisplayStrs29953.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29953 = DisplayStrs29953.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29953").innerHTML = DisplayStrs29953; if (CountActives29953) //alert(SetTimeOutPeriods29953); setTimeout("CountBacks29953(" + (secs+CountSteppers29953) + ")", SetTimeOutPeriods29953); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29953)=="undefined") BackColors29953 = ""; if (typeof(ForeColors29953)=="undefined") ForeColors29953= "white"; if (typeof(TargetDates29953)=="undefined") TargetDates29953 = "04/29/2024 11:00:00 PM"; if (typeof(DisplayFormats29953)=="undefined") DisplayFormats29953 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29953)=="undefined") CountActives29953 = true; if (typeof(FinishMessages29953)=="undefined") FinishMessages29953 = ""; if (typeof(CountSteppers29953)!="number") CountSteppers29953 = -1; if (typeof(LeadingZeros29953)=="undefined") LeadingZeros29953 = true; CountSteppers29953 = Math.ceil(CountSteppers29953); if (CountSteppers29953 == 0) CountActives29953 = false; var SetTimeOutPeriods29953 = (Math.abs(CountSteppers29953)-1)*1000 + 990; puti(BackColors29953, ForeColors29953); var dthens29953 = new Date(TargetDates29953); var dnows29953 = new Date("05/08/2024 10:14:49 PM"); if(CountSteppers29953>0) ddiffs29953 = new Date(dnows29953-dthens29953); else ddiffs29953 = new Date(dthens29953-dnows29953); gsecss29953 = Math.floor(ddiffs29953.valueOf()/1000); CountBacks29953(gsecss29953);