var strActiveTable = ''; /* function viewInstrument(symbol, exchangeID) { var zzz = window.open('/Finance/Portfolio/RT_or_REQUEST.asp?Symbol=' + symbol + '&ExchangeID=' + exchangeID, 'xxx', 'width=300, height=540, status=yes, menubars=no, toolbar=no, scrollbars=auto, resizable=yes,left=' + (screen.width-300)/2 + ',top=' + (screen.height-540)/2) } */ function GetCookie(sCookie,sSubCookie) { var startIndex, endIndex, valueCookie; startIndex = document.cookie.indexOf(sCookie); if (startIndex != -1) { startIndex += sCookie.length + 1; endIndex = document.cookie.indexOf(";",startIndex); if (endIndex == -1) endIndex = document.cookie.length; valueCookie = document.cookie.substring(startIndex,endIndex); if (sSubCookie != "") { startIndex = valueCookie.indexOf(sSubCookie); if (startIndex != -1) { startIndex += sSubCookie.length + 1; endIndex = valueCookie.indexOf("&",startIndex); if (endIndex == -1) endIndex = valueCookie.length; valueCookie = valueCookie.substring(startIndex,endIndex); return(valueCookie); } else return null; } else return(valueCookie); } else return null; } function InsertPortfolio1() { // Check if user already inside of the portfolio var userID = GetCookie("InvestCookie","UserID") var inside = GetCookie("INSIDE","") document.cookie = "IsFunds=1; path=/" // If user is not exist in portfolio then display input for entering userID and password if ((userID == "") || (userID == null) || (inside == "") || (inside == null)) { window.open('/Finance/Portfolio/Login.htm','Login','width=320,height=300,left=' + (screen.width-320)/2 + ',top=' + (screen.height-300)/2) } // If user inside then check what default portfolio and redirect accordingly else { window.location.href = "/Finance/Portfolio/Portfolio.asp?what=&in=1&PortfolioID=" } } function InsertPortfolio() { document.cookie = "IsFunds=1; path=/" window.location.href = "/globessites/globes/Portfolio/Portfolio/portfolio.aspx" }