function setOptions(dest,val,defaultSelect)
{
	eval("arrayDest = "+dest.name)
	dest.length = 0;
	dest.options[0] = new Option(defaultSelect,'0'); 
	index = 1;
	for(i=0;i<arrayDest.length;i++)
	{

		if(arrayDest[i][2] == val)
		{
			dest.options[index] = new Option(arrayDest[i][1],arrayDest[i][0]); 
			index++;
		}
	}	
}

function setIndex(dest,index)
{
	selectedIndex = 0;
	for(i=0;i<dest.options.length;i++)
		if(dest.options[i].value == index)
			selectedIndex = i;
	dest.selectedIndex = selectedIndex;
}
