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;
	var newPortfolio = (self.location.href.toLowerCase().indexOf("newportfolio=1")>=1) ? 1 : 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/FundFlyer/FundFlyer.asp?fundID=' + iInstrumentID, 'funds')
		}
	}
	else { 
		top.location.href = '/Finance/Instrument/Instrument.asp?InstrumentID=' + iInstrumentID + '&Feeder=' + feeder + '&Lang=' + lang + '&Tab=' + iTab + '&rt=' + rt + '&newportfolio=' + newPortfolio;
	}
}


