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 (LeadingZeros29937 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29937(secs) { if (secs < 0) { document.getElementById("cntdwns29937").innerHTML = FinishMessages29937; return; } DisplayStrs29937 = DisplayFormats29937.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29937 = DisplayStrs29937.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29937 = DisplayStrs29937.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29937 = DisplayStrs29937.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29937").innerHTML = DisplayStrs29937; if (CountActives29937) //alert(SetTimeOutPeriods29937); setTimeout("CountBacks29937(" + (secs+CountSteppers29937) + ")", SetTimeOutPeriods29937); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29937)=="undefined") BackColors29937 = ""; if (typeof(ForeColors29937)=="undefined") ForeColors29937= "white"; if (typeof(TargetDates29937)=="undefined") TargetDates29937 = "03/30/2024 10:00:00 PM"; if (typeof(DisplayFormats29937)=="undefined") DisplayFormats29937 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29937)=="undefined") CountActives29937 = true; if (typeof(FinishMessages29937)=="undefined") FinishMessages29937 = ""; if (typeof(CountSteppers29937)!="number") CountSteppers29937 = -1; if (typeof(LeadingZeros29937)=="undefined") LeadingZeros29937 = true; CountSteppers29937 = Math.ceil(CountSteppers29937); if (CountSteppers29937 == 0) CountActives29937 = false; var SetTimeOutPeriods29937 = (Math.abs(CountSteppers29937)-1)*1000 + 990; puti(BackColors29937, ForeColors29937); var dthens29937 = new Date(TargetDates29937); var dnows29937 = new Date("04/29/2024 2:56:30 PM"); if(CountSteppers29937>0) ddiffs29937 = new Date(dnows29937-dthens29937); else ddiffs29937 = new Date(dthens29937-dnows29937); gsecss29937 = Math.floor(ddiffs29937.valueOf()/1000); CountBacks29937(gsecss29937);