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 (LeadingZeros29649 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29649(secs) { if (secs < 0) { document.getElementById("cntdwns29649").innerHTML = FinishMessages29649; return; } DisplayStrs29649 = DisplayFormats29649.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29649 = DisplayStrs29649.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29649 = DisplayStrs29649.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29649 = DisplayStrs29649.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29649").innerHTML = DisplayStrs29649; if (CountActives29649) //alert(SetTimeOutPeriods29649); setTimeout("CountBacks29649(" + (secs+CountSteppers29649) + ")", SetTimeOutPeriods29649); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29649)=="undefined") BackColors29649 = ""; if (typeof(ForeColors29649)=="undefined") ForeColors29649= "white"; if (typeof(TargetDates29649)=="undefined") TargetDates29649 = "03/31/2024 11:00:00 PM"; if (typeof(DisplayFormats29649)=="undefined") DisplayFormats29649 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29649)=="undefined") CountActives29649 = true; if (typeof(FinishMessages29649)=="undefined") FinishMessages29649 = ""; if (typeof(CountSteppers29649)!="number") CountSteppers29649 = -1; if (typeof(LeadingZeros29649)=="undefined") LeadingZeros29649 = true; CountSteppers29649 = Math.ceil(CountSteppers29649); if (CountSteppers29649 == 0) CountActives29649 = false; var SetTimeOutPeriods29649 = (Math.abs(CountSteppers29649)-1)*1000 + 990; puti(BackColors29649, ForeColors29649); var dthens29649 = new Date(TargetDates29649); var dnows29649 = new Date("04/29/2024 1:21:28 AM"); if(CountSteppers29649>0) ddiffs29649 = new Date(dnows29649-dthens29649); else ddiffs29649 = new Date(dthens29649-dnows29649); gsecss29649 = Math.floor(ddiffs29649.valueOf()/1000); CountBacks29649(gsecss29649);