	function limitOptions(oSel, howmany)
		{
		var opt, i = 0, msg = '', thismany = howmany, toomany = new Array();
		while (opt = oSel.options[i++])
		{
		if (opt.selected) --howmany;
		{
		if (howmany < 0)
		{
		toomany[toomany.length] = opt;
		}
		}
		}
		if (howmany < 0)
		{
		msg += 'The maximum number of selections allowed is ' + thismany + '.';
		alert(msg);
		i = 0;
		while (opt = toomany[i++]) opt.selected = false;
		return false;
		}
		}
