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 (LeadingZeros29976 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29976(secs) { if (secs < 0) { document.getElementById("cntdwns29976").innerHTML = FinishMessages29976; return; } DisplayStrs29976 = DisplayFormats29976.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29976 = DisplayStrs29976.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29976 = DisplayStrs29976.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29976 = DisplayStrs29976.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29976").innerHTML = DisplayStrs29976; if (CountActives29976) //alert(SetTimeOutPeriods29976); setTimeout("CountBacks29976(" + (secs+CountSteppers29976) + ")", SetTimeOutPeriods29976); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29976)=="undefined") BackColors29976 = ""; if (typeof(ForeColors29976)=="undefined") ForeColors29976= "white"; if (typeof(TargetDates29976)=="undefined") TargetDates29976 = "04/28/2024 11:00:00 PM"; if (typeof(DisplayFormats29976)=="undefined") DisplayFormats29976 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29976)=="undefined") CountActives29976 = true; if (typeof(FinishMessages29976)=="undefined") FinishMessages29976 = ""; if (typeof(CountSteppers29976)!="number") CountSteppers29976 = -1; if (typeof(LeadingZeros29976)=="undefined") LeadingZeros29976 = true; CountSteppers29976 = Math.ceil(CountSteppers29976); if (CountSteppers29976 == 0) CountActives29976 = false; var SetTimeOutPeriods29976 = (Math.abs(CountSteppers29976)-1)*1000 + 990; puti(BackColors29976, ForeColors29976); var dthens29976 = new Date(TargetDates29976); var dnows29976 = new Date("05/06/2024 11:35:58 PM"); if(CountSteppers29976>0) ddiffs29976 = new Date(dnows29976-dthens29976); else ddiffs29976 = new Date(dthens29976-dnows29976); gsecss29976 = Math.floor(ddiffs29976.valueOf()/1000); CountBacks29976(gsecss29976);