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 (LeadingZeros29727 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29727(secs) { if (secs < 0) { document.getElementById("cntdwns29727").innerHTML = FinishMessages29727; return; } DisplayStrs29727 = DisplayFormats29727.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29727 = DisplayStrs29727.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29727 = DisplayStrs29727.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29727 = DisplayStrs29727.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29727").innerHTML = DisplayStrs29727; if (CountActives29727) //alert(SetTimeOutPeriods29727); setTimeout("CountBacks29727(" + (secs+CountSteppers29727) + ")", SetTimeOutPeriods29727); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29727)=="undefined") BackColors29727 = ""; if (typeof(ForeColors29727)=="undefined") ForeColors29727= "white"; if (typeof(TargetDates29727)=="undefined") TargetDates29727 = "04/26/2024 11:00:00 PM"; if (typeof(DisplayFormats29727)=="undefined") DisplayFormats29727 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29727)=="undefined") CountActives29727 = true; if (typeof(FinishMessages29727)=="undefined") FinishMessages29727 = ""; if (typeof(CountSteppers29727)!="number") CountSteppers29727 = -1; if (typeof(LeadingZeros29727)=="undefined") LeadingZeros29727 = true; CountSteppers29727 = Math.ceil(CountSteppers29727); if (CountSteppers29727 == 0) CountActives29727 = false; var SetTimeOutPeriods29727 = (Math.abs(CountSteppers29727)-1)*1000 + 990; puti(BackColors29727, ForeColors29727); var dthens29727 = new Date(TargetDates29727); var dnows29727 = new Date("05/06/2024 10:10:21 AM"); if(CountSteppers29727>0) ddiffs29727 = new Date(dnows29727-dthens29727); else ddiffs29727 = new Date(dthens29727-dnows29727); gsecss29727 = Math.floor(ddiffs29727.valueOf()/1000); CountBacks29727(gsecss29727);