function populateCurrency(dropdown, valueData, displayData, selectValue) {
	op = 0;

	// Loop over the value and display arrays and populate the dropdown as you go.
	// Also, set selectValue as the selected option
	for(var i = 0; i < valueData.length; i++){
		var thisValue = valueData[i];
		var thisDisplay = displayData[i];

		dropdown[i] = new Option(thisDisplay, thisValue);

		if(isNaN(selectValue))	{
			if(thisDisplay == selectValue)	{

				op = i;
				dropdown[i].selected = true;
			}
		}
		else	{
			if(thisValue == selectValue)	{

				op = i;
				dropdown[i].selected = true;
			}
		}
	}

	// Return the index of the selected option in the currency dropdown
	return op;
}

function populateSalaryBand(dropdown, valueData, displayData, selectValue) {
	// Loop over the value and display arrays and populate the dropdown as you go.
	// Also, set selectValue as the selected option
	for (var i = 0; i < valueData.length; i++)		{

		var thisValue = valueData[i];
		var thisDisplay = displayData[i];

		dropdown[i] = new Option(thisDisplay, thisValue);

		if (thisValue == selectValue)	{
			dropdown[i].selected = true;
			selected = true;
		}
	}
}
