function addOptionsToSelect(selectId,optionText,OptionValue,clearPreviousOptions)
{
	mySelect = document.getElementById(selectId);
	if(clearPreviousOptions==true)
		while (mySelect.options.length > 0)mySelect.options[0] = null;
	var newOption = new Option(optionText,OptionValue);
	mySelect.options.add(newOption);
}


