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 (LeadingZeros30250 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30250(secs) { if (secs < 0) { document.getElementById("cntdwns30250").innerHTML = FinishMessages30250; return; } DisplayStrs30250 = DisplayFormats30250.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30250 = DisplayStrs30250.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30250 = DisplayStrs30250.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30250 = DisplayStrs30250.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30250").innerHTML = DisplayStrs30250; if (CountActives30250) //alert(SetTimeOutPeriods30250); setTimeout("CountBacks30250(" + (secs+CountSteppers30250) + ")", SetTimeOutPeriods30250); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30250)=="undefined") BackColors30250 = ""; if (typeof(ForeColors30250)=="undefined") ForeColors30250= "white"; if (typeof(TargetDates30250)=="undefined") TargetDates30250 = "04/21/2024 10:00:00 PM"; if (typeof(DisplayFormats30250)=="undefined") DisplayFormats30250 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30250)=="undefined") CountActives30250 = true; if (typeof(FinishMessages30250)=="undefined") FinishMessages30250 = ""; if (typeof(CountSteppers30250)!="number") CountSteppers30250 = -1; if (typeof(LeadingZeros30250)=="undefined") LeadingZeros30250 = true; CountSteppers30250 = Math.ceil(CountSteppers30250); if (CountSteppers30250 == 0) CountActives30250 = false; var SetTimeOutPeriods30250 = (Math.abs(CountSteppers30250)-1)*1000 + 990; puti(BackColors30250, ForeColors30250); var dthens30250 = new Date(TargetDates30250); var dnows30250 = new Date("05/03/2024 2:27:46 AM"); if(CountSteppers30250>0) ddiffs30250 = new Date(dnows30250-dthens30250); else ddiffs30250 = new Date(dthens30250-dnows30250); gsecss30250 = Math.floor(ddiffs30250.valueOf()/1000); CountBacks30250(gsecss30250);