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 (LeadingZeros30333 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30333(secs) { if (secs < 0) { document.getElementById("cntdwns30333").innerHTML = FinishMessages30333; return; } DisplayStrs30333 = DisplayFormats30333.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30333 = DisplayStrs30333.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30333 = DisplayStrs30333.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30333 = DisplayStrs30333.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30333").innerHTML = DisplayStrs30333; if (CountActives30333) //alert(SetTimeOutPeriods30333); setTimeout("CountBacks30333(" + (secs+CountSteppers30333) + ")", SetTimeOutPeriods30333); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30333)=="undefined") BackColors30333 = ""; if (typeof(ForeColors30333)=="undefined") ForeColors30333= "white"; if (typeof(TargetDates30333)=="undefined") TargetDates30333 = "04/21/2024 10:00:00 PM"; if (typeof(DisplayFormats30333)=="undefined") DisplayFormats30333 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30333)=="undefined") CountActives30333 = true; if (typeof(FinishMessages30333)=="undefined") FinishMessages30333 = ""; if (typeof(CountSteppers30333)!="number") CountSteppers30333 = -1; if (typeof(LeadingZeros30333)=="undefined") LeadingZeros30333 = true; CountSteppers30333 = Math.ceil(CountSteppers30333); if (CountSteppers30333 == 0) CountActives30333 = false; var SetTimeOutPeriods30333 = (Math.abs(CountSteppers30333)-1)*1000 + 990; puti(BackColors30333, ForeColors30333); var dthens30333 = new Date(TargetDates30333); var dnows30333 = new Date("05/02/2024 8:53:50 PM"); if(CountSteppers30333>0) ddiffs30333 = new Date(dnows30333-dthens30333); else ddiffs30333 = new Date(dthens30333-dnows30333); gsecss30333 = Math.floor(ddiffs30333.valueOf()/1000); CountBacks30333(gsecss30333);