function calcage(secs, num1, num2) { s = ((Math.floor(secs/num1))%num2).toString(); if (LeadingZero && s.length < 2) s = "0" + s; return "" + s + ""; } function CountBack(secs) { if (secs < 0) { document.getElementById("countDown").innerHTML = FinishMessage; return; } DisplayStr = DisplayFormat.replace(/%%D%%/g, calcage(secs,86400,100000)); DisplayStr = DisplayStr.replace(/%%H%%/g, calcage(secs,3600,24)); DisplayStr = DisplayStr.replace(/%%M%%/g, calcage(secs,60,60)); DisplayStr = DisplayStr.replace(/%%S%%/g, calcage(secs,1,60)); elem = document.getElementById('countDown'); elem.innerHTML = DisplayStr; if (CountActive) setTimeout("CountBack(" + (secs+CountStepper) + ")", SetTimeOutPeriod); } myPopup = ''; function openRadio() { var url = "http://www.americanlemans.com/radio/almsradio.php"; myPopup = window.open(url,'popupWindow','width=340,height=100,toolbar=no,status=yes'); } function openRadio2() { var url = "http://www.americanlemans.com/radio/almsradio2.php"; myPopup = window.open(url,'popupWindow','width=340,height=100,toolbar=no,status=yes'); }