function launchSearch(type) { return popWin("/data/popsearch.action?t=" + type, "500", "725", "chartSearch", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no"); } function checkBasicSearchForm(form) { var dropdown = form.a; var symbol = form.s; if (dropdown.selectedIndex == (dropdown.length - 1)) { document.location.href = "/livecharts/livecharts.action?symbol=" + symbol.value; return false; } else return true; } function linkpage() { msgWindow = window.open('','mc_help','width=470,height=400'); msgWindow.location.href = "/search/symbolhelp.jsp?printable=true"; if (msgWindow.opener == null) msgWindow.opener = self; } function popWin(url, width, height, name, properties) { var winProperties = properties; if (!winProperties) winProperties = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no'; if (width > 0) winProperties = winProperties + ',width=' + width; if (height > 0) winProperties = winProperties + ',height=' + height; if(!name) name = "popWin"; var win = window.open(url, name, winProperties); if (win.opener == null) win.opener = self; win.focus(); return false; } function purgeList(selectList) { while (selectList.length > 0) selectList.options[selectList.length - 1] = null; } function checkSearchBox(form){ var el = form.elements for(i=0;i