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 (LeadingZeros29927 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29927(secs) { if (secs < 0) { document.getElementById("cntdwns29927").innerHTML = FinishMessages29927; return; } DisplayStrs29927 = DisplayFormats29927.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29927 = DisplayStrs29927.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29927 = DisplayStrs29927.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29927 = DisplayStrs29927.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29927").innerHTML = DisplayStrs29927; if (CountActives29927) //alert(SetTimeOutPeriods29927); setTimeout("CountBacks29927(" + (secs+CountSteppers29927) + ")", SetTimeOutPeriods29927); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29927)=="undefined") BackColors29927 = ""; if (typeof(ForeColors29927)=="undefined") ForeColors29927= "white"; if (typeof(TargetDates29927)=="undefined") TargetDates29927 = "03/30/2024 10:00:00 PM"; if (typeof(DisplayFormats29927)=="undefined") DisplayFormats29927 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29927)=="undefined") CountActives29927 = true; if (typeof(FinishMessages29927)=="undefined") FinishMessages29927 = ""; if (typeof(CountSteppers29927)!="number") CountSteppers29927 = -1; if (typeof(LeadingZeros29927)=="undefined") LeadingZeros29927 = true; CountSteppers29927 = Math.ceil(CountSteppers29927); if (CountSteppers29927 == 0) CountActives29927 = false; var SetTimeOutPeriods29927 = (Math.abs(CountSteppers29927)-1)*1000 + 990; puti(BackColors29927, ForeColors29927); var dthens29927 = new Date(TargetDates29927); var dnows29927 = new Date("04/27/2024 8:30:31 PM"); if(CountSteppers29927>0) ddiffs29927 = new Date(dnows29927-dthens29927); else ddiffs29927 = new Date(dthens29927-dnows29927); gsecss29927 = Math.floor(ddiffs29927.valueOf()/1000); CountBacks29927(gsecss29927);