function numberOnly()
{
	Key = window.event.keyCode
	if (Key == 13)
	{
		return false;
	}
	if (Key < 48 || Key > 57)
		{
			window.event.cancelBubble = true;
			window.event.returnValue = false;
		}
}
function addItem(selectObj)
{
	var itemObj = selectObj.options[selectObj.selectedIndex];
	var oOption = document.createElement("OPTION");
	var found = false;
	for (i=0;i<document.all('categoryFld').options.length;i++)
	{
		if (document.all('categoryFld').options[i].value == itemObj.value)
		{
			found = true
		}
	}
	if (found)
	{
		alert('This Type has already been selected')
	} else {
		if(itemObj.value=='')
		{	
			alert('This is not a Type and therefore cannot be selected')
		} else {
			document.all('categoryFld').options.add(oOption);
			oOption.text =itemObj.text
			while(oOption.text.charCodeAt(0) == 160)
			{
				oOption.text = oOption.text.substring(1,oOption.text.length)
			}
			oOption.value = itemObj.value;
			document.all('categoryType').value = '';
			for (i=0;i<document.all('categoryFld').options.length;i++)
			{
				document.all('categoryType').value = document.all('categoryType').value + document.all('categoryFld').options[i].value + ','
			}
		}
	}

}
function deleteItem(selectObj)
{
	if (selectObj.selectedIndex != -1)
	{	
		selectObj.options.remove(selectObj.selectedIndex);
	}
	document.all('categoryType').value = '';
	for (i=0;i<document.all('categoryFld').options.length;i++)
	{
		document.all('categoryType').value = document.all('categoryType').value + document.all('categoryFld').options[i].value + ','
	}
	
}
