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 (LeadingZeros29954 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29954(secs) { if (secs < 0) { document.getElementById("cntdwns29954").innerHTML = FinishMessages29954; return; } DisplayStrs29954 = DisplayFormats29954.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29954 = DisplayStrs29954.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29954 = DisplayStrs29954.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29954 = DisplayStrs29954.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29954").innerHTML = DisplayStrs29954; if (CountActives29954) //alert(SetTimeOutPeriods29954); setTimeout("CountBacks29954(" + (secs+CountSteppers29954) + ")", SetTimeOutPeriods29954); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29954)=="undefined") BackColors29954 = ""; if (typeof(ForeColors29954)=="undefined") ForeColors29954= "white"; if (typeof(TargetDates29954)=="undefined") TargetDates29954 = "04/29/2024 11:00:00 PM"; if (typeof(DisplayFormats29954)=="undefined") DisplayFormats29954 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29954)=="undefined") CountActives29954 = true; if (typeof(FinishMessages29954)=="undefined") FinishMessages29954 = ""; if (typeof(CountSteppers29954)!="number") CountSteppers29954 = -1; if (typeof(LeadingZeros29954)=="undefined") LeadingZeros29954 = true; CountSteppers29954 = Math.ceil(CountSteppers29954); if (CountSteppers29954 == 0) CountActives29954 = false; var SetTimeOutPeriods29954 = (Math.abs(CountSteppers29954)-1)*1000 + 990; puti(BackColors29954, ForeColors29954); var dthens29954 = new Date(TargetDates29954); var dnows29954 = new Date("05/08/2024 9:52:05 PM"); if(CountSteppers29954>0) ddiffs29954 = new Date(dnows29954-dthens29954); else ddiffs29954 = new Date(dthens29954-dnows29954); gsecss29954 = Math.floor(ddiffs29954.valueOf()/1000); CountBacks29954(gsecss29954);