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 (LeadingZeros29526 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29526(secs) { if (secs < 0) { document.getElementById("cntdwns29526").innerHTML = FinishMessages29526; return; } DisplayStrs29526 = DisplayFormats29526.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29526 = DisplayStrs29526.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29526 = DisplayStrs29526.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29526 = DisplayStrs29526.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29526").innerHTML = DisplayStrs29526; if (CountActives29526) //alert(SetTimeOutPeriods29526); setTimeout("CountBacks29526(" + (secs+CountSteppers29526) + ")", SetTimeOutPeriods29526); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29526)=="undefined") BackColors29526 = ""; if (typeof(ForeColors29526)=="undefined") ForeColors29526= "white"; if (typeof(TargetDates29526)=="undefined") TargetDates29526 = "03/31/2024 11:00:00 PM"; if (typeof(DisplayFormats29526)=="undefined") DisplayFormats29526 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29526)=="undefined") CountActives29526 = true; if (typeof(FinishMessages29526)=="undefined") FinishMessages29526 = ""; if (typeof(CountSteppers29526)!="number") CountSteppers29526 = -1; if (typeof(LeadingZeros29526)=="undefined") LeadingZeros29526 = true; CountSteppers29526 = Math.ceil(CountSteppers29526); if (CountSteppers29526 == 0) CountActives29526 = false; var SetTimeOutPeriods29526 = (Math.abs(CountSteppers29526)-1)*1000 + 990; puti(BackColors29526, ForeColors29526); var dthens29526 = new Date(TargetDates29526); var dnows29526 = new Date("04/29/2024 3:34:13 PM"); if(CountSteppers29526>0) ddiffs29526 = new Date(dnows29526-dthens29526); else ddiffs29526 = new Date(dthens29526-dnows29526); gsecss29526 = Math.floor(ddiffs29526.valueOf()/1000); CountBacks29526(gsecss29526);