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 (LeadingZeros29233 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29233(secs) { if (secs < 0) { document.getElementById("cntdwns29233").innerHTML = FinishMessages29233; return; } DisplayStrs29233 = DisplayFormats29233.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29233 = DisplayStrs29233.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29233 = DisplayStrs29233.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29233 = DisplayStrs29233.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29233").innerHTML = DisplayStrs29233; if (CountActives29233) //alert(SetTimeOutPeriods29233); setTimeout("CountBacks29233(" + (secs+CountSteppers29233) + ")", SetTimeOutPeriods29233); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29233)=="undefined") BackColors29233 = ""; if (typeof(ForeColors29233)=="undefined") ForeColors29233= "white"; if (typeof(TargetDates29233)=="undefined") TargetDates29233 = "03/31/2024 10:00:00 PM"; if (typeof(DisplayFormats29233)=="undefined") DisplayFormats29233 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29233)=="undefined") CountActives29233 = true; if (typeof(FinishMessages29233)=="undefined") FinishMessages29233 = ""; if (typeof(CountSteppers29233)!="number") CountSteppers29233 = -1; if (typeof(LeadingZeros29233)=="undefined") LeadingZeros29233 = true; CountSteppers29233 = Math.ceil(CountSteppers29233); if (CountSteppers29233 == 0) CountActives29233 = false; var SetTimeOutPeriods29233 = (Math.abs(CountSteppers29233)-1)*1000 + 990; puti(BackColors29233, ForeColors29233); var dthens29233 = new Date(TargetDates29233); var dnows29233 = new Date("04/28/2024 9:54:08 AM"); if(CountSteppers29233>0) ddiffs29233 = new Date(dnows29233-dthens29233); else ddiffs29233 = new Date(dthens29233-dnows29233); gsecss29233 = Math.floor(ddiffs29233.valueOf()/1000); CountBacks29233(gsecss29233);