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 (LeadingZeros30429 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30429(secs) { if (secs < 0) { document.getElementById("cntdwns30429").innerHTML = FinishMessages30429; return; } DisplayStrs30429 = DisplayFormats30429.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30429 = DisplayStrs30429.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30429 = DisplayStrs30429.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30429 = DisplayStrs30429.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30429").innerHTML = DisplayStrs30429; if (CountActives30429) //alert(SetTimeOutPeriods30429); setTimeout("CountBacks30429(" + (secs+CountSteppers30429) + ")", SetTimeOutPeriods30429); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30429)=="undefined") BackColors30429 = ""; if (typeof(ForeColors30429)=="undefined") ForeColors30429= "white"; if (typeof(TargetDates30429)=="undefined") TargetDates30429 = "04/30/2024 10:00:00 PM"; if (typeof(DisplayFormats30429)=="undefined") DisplayFormats30429 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30429)=="undefined") CountActives30429 = true; if (typeof(FinishMessages30429)=="undefined") FinishMessages30429 = ""; if (typeof(CountSteppers30429)!="number") CountSteppers30429 = -1; if (typeof(LeadingZeros30429)=="undefined") LeadingZeros30429 = true; CountSteppers30429 = Math.ceil(CountSteppers30429); if (CountSteppers30429 == 0) CountActives30429 = false; var SetTimeOutPeriods30429 = (Math.abs(CountSteppers30429)-1)*1000 + 990; puti(BackColors30429, ForeColors30429); var dthens30429 = new Date(TargetDates30429); var dnows30429 = new Date("05/09/2024 8:26:14 PM"); if(CountSteppers30429>0) ddiffs30429 = new Date(dnows30429-dthens30429); else ddiffs30429 = new Date(dthens30429-dnows30429); gsecss30429 = Math.floor(ddiffs30429.valueOf()/1000); CountBacks30429(gsecss30429);