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 (LeadingZeros29634 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29634(secs) { if (secs < 0) { document.getElementById("cntdwns29634").innerHTML = FinishMessages29634; return; } DisplayStrs29634 = DisplayFormats29634.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29634 = DisplayStrs29634.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29634 = DisplayStrs29634.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29634 = DisplayStrs29634.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29634").innerHTML = DisplayStrs29634; if (CountActives29634) //alert(SetTimeOutPeriods29634); setTimeout("CountBacks29634(" + (secs+CountSteppers29634) + ")", SetTimeOutPeriods29634); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29634)=="undefined") BackColors29634 = ""; if (typeof(ForeColors29634)=="undefined") ForeColors29634= "white"; if (typeof(TargetDates29634)=="undefined") TargetDates29634 = "04/23/2024 11:00:00 PM"; if (typeof(DisplayFormats29634)=="undefined") DisplayFormats29634 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29634)=="undefined") CountActives29634 = true; if (typeof(FinishMessages29634)=="undefined") FinishMessages29634 = ""; if (typeof(CountSteppers29634)!="number") CountSteppers29634 = -1; if (typeof(LeadingZeros29634)=="undefined") LeadingZeros29634 = true; CountSteppers29634 = Math.ceil(CountSteppers29634); if (CountSteppers29634 == 0) CountActives29634 = false; var SetTimeOutPeriods29634 = (Math.abs(CountSteppers29634)-1)*1000 + 990; puti(BackColors29634, ForeColors29634); var dthens29634 = new Date(TargetDates29634); var dnows29634 = new Date("05/02/2024 10:35:59 PM"); if(CountSteppers29634>0) ddiffs29634 = new Date(dnows29634-dthens29634); else ddiffs29634 = new Date(dthens29634-dnows29634); gsecss29634 = Math.floor(ddiffs29634.valueOf()/1000); CountBacks29634(gsecss29634);