function AddValuesToHiddenFields_Helper(aValues,
										txt,
										iNumberOfValues)
{
	var s = '';
	var sSplit;
	var i = 0;
	
	for (i = 0; i < iNumberOfValues; i++)
	{
		var sSplit = aValues[i].split("|");
		s += sSplit[0] + '|';
	}
	
	txt.value = s;
}

function AddValuesToListBox(aValues,
							lst,
							iNumberOfValues)
{
	opt = lst.options;
	ClearOptions(lst);
	
	var i = 0;
	var oOption;
	var aCurrentValue;
	var oOption;
	
	for (i = 0; i < iNumberOfValues; i++)
	{
		aCurrentValue = aValues[i].split("|");
		oOption = document.createElement("OPTION");
		oOption.text = aCurrentValue[1];
		oOption.value = aCurrentValue[0];
		opt[opt.length] = oOption;
	}
}

function ClearOptions(lst)
{
	var i = 0;
	var o;
	var iLength = lst.options.length
	
	for (i = 0; i < iLength; i++)
	{
		o = lst.options[0];
		lst.remove(o);
	}
}