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 (LeadingZeros29754 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29754(secs) { if (secs < 0) { document.getElementById("cntdwns29754").innerHTML = FinishMessages29754; return; } DisplayStrs29754 = DisplayFormats29754.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29754 = DisplayStrs29754.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29754 = DisplayStrs29754.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29754 = DisplayStrs29754.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29754").innerHTML = DisplayStrs29754; if (CountActives29754) //alert(SetTimeOutPeriods29754); setTimeout("CountBacks29754(" + (secs+CountSteppers29754) + ")", SetTimeOutPeriods29754); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29754)=="undefined") BackColors29754 = ""; if (typeof(ForeColors29754)=="undefined") ForeColors29754= "white"; if (typeof(TargetDates29754)=="undefined") TargetDates29754 = "04/29/2024 11:00:00 PM"; if (typeof(DisplayFormats29754)=="undefined") DisplayFormats29754 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29754)=="undefined") CountActives29754 = true; if (typeof(FinishMessages29754)=="undefined") FinishMessages29754 = ""; if (typeof(CountSteppers29754)!="number") CountSteppers29754 = -1; if (typeof(LeadingZeros29754)=="undefined") LeadingZeros29754 = true; CountSteppers29754 = Math.ceil(CountSteppers29754); if (CountSteppers29754 == 0) CountActives29754 = false; var SetTimeOutPeriods29754 = (Math.abs(CountSteppers29754)-1)*1000 + 990; puti(BackColors29754, ForeColors29754); var dthens29754 = new Date(TargetDates29754); var dnows29754 = new Date("05/07/2024 4:47:26 PM"); if(CountSteppers29754>0) ddiffs29754 = new Date(dnows29754-dthens29754); else ddiffs29754 = new Date(dthens29754-dnows29754); gsecss29754 = Math.floor(ddiffs29754.valueOf()/1000); CountBacks29754(gsecss29754);