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 (LeadingZeros29849 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29849(secs) { if (secs < 0) { document.getElementById("cntdwns29849").innerHTML = FinishMessages29849; return; } DisplayStrs29849 = DisplayFormats29849.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29849 = DisplayStrs29849.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29849 = DisplayStrs29849.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29849 = DisplayStrs29849.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29849").innerHTML = DisplayStrs29849; if (CountActives29849) //alert(SetTimeOutPeriods29849); setTimeout("CountBacks29849(" + (secs+CountSteppers29849) + ")", SetTimeOutPeriods29849); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29849)=="undefined") BackColors29849 = ""; if (typeof(ForeColors29849)=="undefined") ForeColors29849= "white"; if (typeof(TargetDates29849)=="undefined") TargetDates29849 = "03/31/2024 11:00:00 PM"; if (typeof(DisplayFormats29849)=="undefined") DisplayFormats29849 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29849)=="undefined") CountActives29849 = true; if (typeof(FinishMessages29849)=="undefined") FinishMessages29849 = ""; if (typeof(CountSteppers29849)!="number") CountSteppers29849 = -1; if (typeof(LeadingZeros29849)=="undefined") LeadingZeros29849 = true; CountSteppers29849 = Math.ceil(CountSteppers29849); if (CountSteppers29849 == 0) CountActives29849 = false; var SetTimeOutPeriods29849 = (Math.abs(CountSteppers29849)-1)*1000 + 990; puti(BackColors29849, ForeColors29849); var dthens29849 = new Date(TargetDates29849); var dnows29849 = new Date("04/29/2024 3:11:56 PM"); if(CountSteppers29849>0) ddiffs29849 = new Date(dnows29849-dthens29849); else ddiffs29849 = new Date(dthens29849-dnows29849); gsecss29849 = Math.floor(ddiffs29849.valueOf()/1000); CountBacks29849(gsecss29849);