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 (LeadingZeros30329 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30329(secs) { if (secs < 0) { document.getElementById("cntdwns30329").innerHTML = FinishMessages30329; return; } DisplayStrs30329 = DisplayFormats30329.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30329 = DisplayStrs30329.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30329 = DisplayStrs30329.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30329 = DisplayStrs30329.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30329").innerHTML = DisplayStrs30329; if (CountActives30329) //alert(SetTimeOutPeriods30329); setTimeout("CountBacks30329(" + (secs+CountSteppers30329) + ")", SetTimeOutPeriods30329); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30329)=="undefined") BackColors30329 = ""; if (typeof(ForeColors30329)=="undefined") ForeColors30329= "white"; if (typeof(TargetDates30329)=="undefined") TargetDates30329 = "04/21/2024 10:00:00 PM"; if (typeof(DisplayFormats30329)=="undefined") DisplayFormats30329 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30329)=="undefined") CountActives30329 = true; if (typeof(FinishMessages30329)=="undefined") FinishMessages30329 = ""; if (typeof(CountSteppers30329)!="number") CountSteppers30329 = -1; if (typeof(LeadingZeros30329)=="undefined") LeadingZeros30329 = true; CountSteppers30329 = Math.ceil(CountSteppers30329); if (CountSteppers30329 == 0) CountActives30329 = false; var SetTimeOutPeriods30329 = (Math.abs(CountSteppers30329)-1)*1000 + 990; puti(BackColors30329, ForeColors30329); var dthens30329 = new Date(TargetDates30329); var dnows30329 = new Date("05/03/2024 2:18:22 AM"); if(CountSteppers30329>0) ddiffs30329 = new Date(dnows30329-dthens30329); else ddiffs30329 = new Date(dthens30329-dnows30329); gsecss30329 = Math.floor(ddiffs30329.valueOf()/1000); CountBacks30329(gsecss30329);