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 (LeadingZeros29644 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29644(secs) { if (secs < 0) { document.getElementById("cntdwns29644").innerHTML = FinishMessages29644; return; } DisplayStrs29644 = DisplayFormats29644.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29644 = DisplayStrs29644.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29644 = DisplayStrs29644.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29644 = DisplayStrs29644.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29644").innerHTML = DisplayStrs29644; if (CountActives29644) //alert(SetTimeOutPeriods29644); setTimeout("CountBacks29644(" + (secs+CountSteppers29644) + ")", SetTimeOutPeriods29644); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29644)=="undefined") BackColors29644 = ""; if (typeof(ForeColors29644)=="undefined") ForeColors29644= "white"; if (typeof(TargetDates29644)=="undefined") TargetDates29644 = "04/22/2024 11:00:00 PM"; if (typeof(DisplayFormats29644)=="undefined") DisplayFormats29644 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29644)=="undefined") CountActives29644 = true; if (typeof(FinishMessages29644)=="undefined") FinishMessages29644 = ""; if (typeof(CountSteppers29644)!="number") CountSteppers29644 = -1; if (typeof(LeadingZeros29644)=="undefined") LeadingZeros29644 = true; CountSteppers29644 = Math.ceil(CountSteppers29644); if (CountSteppers29644 == 0) CountActives29644 = false; var SetTimeOutPeriods29644 = (Math.abs(CountSteppers29644)-1)*1000 + 990; puti(BackColors29644, ForeColors29644); var dthens29644 = new Date(TargetDates29644); var dnows29644 = new Date("05/02/2024 5:57:47 PM"); if(CountSteppers29644>0) ddiffs29644 = new Date(dnows29644-dthens29644); else ddiffs29644 = new Date(dthens29644-dnows29644); gsecss29644 = Math.floor(ddiffs29644.valueOf()/1000); CountBacks29644(gsecss29644);