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 (LeadingZeros30136 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30136(secs) { if (secs < 0) { document.getElementById("cntdwns30136").innerHTML = FinishMessages30136; return; } DisplayStrs30136 = DisplayFormats30136.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30136 = DisplayStrs30136.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30136 = DisplayStrs30136.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30136 = DisplayStrs30136.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30136").innerHTML = DisplayStrs30136; if (CountActives30136) //alert(SetTimeOutPeriods30136); setTimeout("CountBacks30136(" + (secs+CountSteppers30136) + ")", SetTimeOutPeriods30136); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30136)=="undefined") BackColors30136 = ""; if (typeof(ForeColors30136)=="undefined") ForeColors30136= "white"; if (typeof(TargetDates30136)=="undefined") TargetDates30136 = "03/31/2024 11:00:00 PM"; if (typeof(DisplayFormats30136)=="undefined") DisplayFormats30136 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30136)=="undefined") CountActives30136 = true; if (typeof(FinishMessages30136)=="undefined") FinishMessages30136 = ""; if (typeof(CountSteppers30136)!="number") CountSteppers30136 = -1; if (typeof(LeadingZeros30136)=="undefined") LeadingZeros30136 = true; CountSteppers30136 = Math.ceil(CountSteppers30136); if (CountSteppers30136 == 0) CountActives30136 = false; var SetTimeOutPeriods30136 = (Math.abs(CountSteppers30136)-1)*1000 + 990; puti(BackColors30136, ForeColors30136); var dthens30136 = new Date(TargetDates30136); var dnows30136 = new Date("04/28/2024 10:44:14 PM"); if(CountSteppers30136>0) ddiffs30136 = new Date(dnows30136-dthens30136); else ddiffs30136 = new Date(dthens30136-dnows30136); gsecss30136 = Math.floor(ddiffs30136.valueOf()/1000); CountBacks30136(gsecss30136);