function selectionItem()
	{
	this.theSel = document.portfolio.companySel;

	this.addOpt = addOption;
//	this.delOpt = deleteOption;
	this.maxOpt = fullArray.length-1;
	this.fillSel = fillSel;
	this.deleAll = deleAll;		
	this.deleOpt = deleOption;
	}

function addOption(optValue,optText,optCounter)
	{
	this.theSel.options[optCounter+2] = new Option(optText, optValue);
	}

function deleOption(indexOpt)
	{
	this.theSel.options[indexOpt] = null;
	}

	
function deleAll()
	{
	selLength = document.portfolio.companySel.length;
	for(i=selLength;i>1;i--)
		{
		document.portfolio.companySel.options[i] = null;
		}
	}

function gotoUrl()
	{
	whichOne = document.all ? document.portfolio.companySel.value : document.portfolio.companySel[document.portfolio.companySel.selectedIndex].value;
	whichObj = document.all ? 'document.URL' : 'document.location';
	if(whichOne != '$')	eval(whichObj + '=\'../portfolio/company.asp?item_id=' + whichOne+'\'');
	}



counter=0;

function fillSel()
{	

counter=0;
filterStr='';
this.deleAll();

if(document.all)
	{	
	filterStr= filterStr + 'if(i>=0';
	if(document.portfolio.sectorSel.value != "$") filterStr = filterStr + ' && fullArray[i+1]=="' + document.portfolio.sectorSel.value+'"';
	}
	else
	{
	filterStr = filterStr  + 'if(i>=0';
	if(document.portfolio.sectorSel[document.portfolio.sectorSel.selectedIndex].value != "$") filterStr = filterStr + ' && fullArray[i+1]=="' + document.portfolio.sectorSel[document.portfolio.sectorSel.selectedIndex].value+'"';
	}
	filterStr = filterStr +') alon = true; else alon = false;';
	for(i=0;i<=portSelect.maxOpt;i=i+3)
	{ 
		eval(filterStr);
		if(alon)
		{			
		this.addOpt(fullArray[i],fullArray[i+2],counter);
		counter++; 
		}
	}
	

}