function stopError(msg, url, linenumber) { //un-comment next line to stop all error pop-ups // alert('Error message= '+msg+'\nURL= '+url+'\nLine Number= '+linenumber) return true; } window.onerror = stopError; function openLogin(iFund, secureBase) { w = document.body.clientWidth; h = document.body.clientHeight; var popW = 450, popH = 320; var leftPos = (w-popW)/2, topPos = (h-popH)/2; ileft = parseInt((document.body.clientWidth )/2); itop = parseInt((document.body.clientHeight )/2); popUp(secureBase + 'login.asp?fundid=' + iFund, popW, popH, leftPos, topPos); } function popUp(url, width, height, left, top) { // so it won't error out if the popup already exists try {popwin2.close();} catch(exception) {} newLeft = window.screenLeft + left; newTop = window.screenTop + top; popwin2=window.open(url,"popwin2",'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=0,width=' + width + ',height=' + height + ',top=' + newTop + ',left=' + newLeft); popwin2.focus(); return false; } //manage menus so they will close when another top level option is clicked var arrMenusMain = new Array(); arrMenusMain[0] = 'CompanyProfile'; arrMenusMain[1] = 'Management'; arrMenusMain[2] = 'OurProducts'; function closeMenus(arr) { for (var i=0; i < arr.length; i++) eval("document.all." + arr[i] + ".style.display='none'"); } function openList(which) { if(eval("document.all."+which+".style.display")=="block") { eval("document.all."+which+".style.display='none'") } else { //close all other menus closeMenus(arrMenusMain); eval("document.all."+which+".style.display='block'") } }