function viewInstrument(instrumentID, feeder, lang, tab, instrumentType, rt) { var iInstrumentID = (""+instrumentID != "undefined") ? instrumentID : ""; var iTab = (""+tab != "undefined") ? tab : 1; var rt = (""+rt != "undefined") ? rt : 0; if ((instrumentType == 16) && (feeder != 1)) { // Funds if(lang.toUpperCase() == 'EN') { top.location.href = '/Finance/Instrument/Instrument.asp?InstrumentID=' + iInstrumentID + '&Lang=' + lang; } else { window.open('http://funds.globes.co.il/funds/funds/funds.asp?fundID=' + iInstrumentID, 'funds') } } else { top.location.href = '/Finance/Instrument/Instrument.asp?InstrumentID=' + iInstrumentID + '&Feeder=' + feeder + '&Lang=' + lang + '&Tab=' + iTab + '&rt=' + rt; } } function ViewPage2(page, width, height) { window.open("" + page, 'PopUp4', 'location=no,toolbar=no,menubar=no,status=yes,width=' + width + ',height=' + height +',scrollbars=no,resizable=yes,left=' + (screen.width-width)/2 + ',top=0' ); } function ViewPage(page, width, height) { window.open("" + page, 'PopUp4', 'location=no,toolbar=no,menubar=no,status=yes,width=' + width + ',height=' + height +',scrollbars=yes,resizable=yes,left=' + (screen.width-width)/2 + ',top=0' ); } function create_input(name,value) { var i = document.createElement('input') i.name = name i.value = value return i } function addInstrument_old(instrumentID, name, symbol, feeder, portfolioID) { var sParams = 'toolbar=no, width=350, height=220, status=no, scrollbars=yes, resizable=yes, left=' + (screen.width-350)/2 + ',top=' + (screen.height-220)/2 var iPortfolioID = (""+portfolioID != "undefined") ? portfolioID : ""; var sURL = '/Finance/Portfolio/AddInstrumentOutside.asp?InstrumentID=' + instrumentID + '&name=' + escape(name) + '&ticker=' + symbol + '&feeder=' + feeder + '&portfolioID=' + iPortfolioID var win = window.open("" + sURL, 'addInstrument', sParams); } function addInstrument(instrumentID, name, symbol, feeder, portfolioID) { var url = "/globessites/globes/portfolio/Portfolio/ContentManager.aspx?" window.open( "" + url + "&Instrument_ID=" + instrumentID + "&popup_id=buysale" + "&nameheb=" + name + "&feeder=" + feeder ,"", "location=no,toolbar=no,menubar=no,status=yes,scrollbar=no, resizable=no , width=475,height=420") }