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 (LeadingZeros30527 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30527(secs) { if (secs < 0) { document.getElementById("cntdwns30527").innerHTML = FinishMessages30527; return; } DisplayStrs30527 = DisplayFormats30527.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30527 = DisplayStrs30527.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30527 = DisplayStrs30527.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30527 = DisplayStrs30527.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30527").innerHTML = DisplayStrs30527; if (CountActives30527) //alert(SetTimeOutPeriods30527); setTimeout("CountBacks30527(" + (secs+CountSteppers30527) + ")", SetTimeOutPeriods30527); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30527)=="undefined") BackColors30527 = ""; if (typeof(ForeColors30527)=="undefined") ForeColors30527= "white"; if (typeof(TargetDates30527)=="undefined") TargetDates30527 = "05/21/2024 10:00:00 PM"; if (typeof(DisplayFormats30527)=="undefined") DisplayFormats30527 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30527)=="undefined") CountActives30527 = true; if (typeof(FinishMessages30527)=="undefined") FinishMessages30527 = ""; if (typeof(CountSteppers30527)!="number") CountSteppers30527 = -1; if (typeof(LeadingZeros30527)=="undefined") LeadingZeros30527 = true; CountSteppers30527 = Math.ceil(CountSteppers30527); if (CountSteppers30527 == 0) CountActives30527 = false; var SetTimeOutPeriods30527 = (Math.abs(CountSteppers30527)-1)*1000 + 990; puti(BackColors30527, ForeColors30527); var dthens30527 = new Date(TargetDates30527); var dnows30527 = new Date("06/02/2024 12:58:49 PM"); if(CountSteppers30527>0) ddiffs30527 = new Date(dnows30527-dthens30527); else ddiffs30527 = new Date(dthens30527-dnows30527); gsecss30527 = Math.floor(ddiffs30527.valueOf()/1000); CountBacks30527(gsecss30527);