// List Functions ----------------------------------------

function fillListItems(ID, listItems)
{
	// Get the list to fill
	var list = getObject(ID);
	
	// Clear the options currently in the list
	emptyList(ID);
	
	// Load the itesm into the list	
	for(var k = 0; k < listItems.length; k++)
	{
		var item = listItems[k];
		list[k] = new Option(item.Text,item.Value);
	}		
} 

function emptyList(ID)
{
	var list = getObject(ID);
	//Clear the options currently in the list
	for (x = list.length; x >= 0; x = x - 1) {
		list[x] = null;
	}
} 