// JavaScript Document	
function CountyNames(elementID) {
	
	var countyAbberArray = new Array();

	countyAbberArray[0] = "Beds";
	countyAbberArray[1] = "Berks";
	countyAbberArray[2] = "Bucks";	
	countyAbberArray[3] = "Cambs";
	countyAbberArray[4] = "Glos";
	countyAbberArray[5] = "Hants";
	countyAbberArray[6] = "Herts";
	countyAbberArray[7] = "Lancs";
	countyAbberArray[8] = "Leics";	
	countyAbberArray[9] = "Lincs";	
	countyAbberArray[10] = "Glam";
	countyAbberArray[11] = "Middx";
	countyAbberArray[12] = "Northants";	
	countyAbberArray[13] = "Northd";
	countyAbberArray[14] = "Notts";
	countyAbberArray[15] = "Oxon";
	countyAbberArray[16] = "Staffs";
	countyAbberArray[17] = "Warks";
	countyAbberArray[18] = "Wilts";
	countyAbberArray[19] = "Worcs";
	
	var countyNamesArray = new Array();

	countyNamesArray[0] = "Bedfordshire";
	countyNamesArray[1] = "Berkshire";
	countyNamesArray[2] = "Buckinghamshire";	
	countyNamesArray[3] = "Cambridgeshire";
	countyNamesArray[4] = "Gloucestershire";
	countyNamesArray[5] = "Hampshire";
	countyNamesArray[6] = "Hertfordshire";
	countyNamesArray[7] = "Lancashire";
	countyNamesArray[8] = "Leicestershire";	
	countyNamesArray[9] = "Lincolnshire";
	countyNamesArray[10] = "Glamorgan";
	countyNamesArray[11] = "Middlesex";
	countyNamesArray[12] = "Northamptonshire";	
	countyNamesArray[13] = "Northumberland";
	countyNamesArray[14] = "Nottinghamshire";
	countyNamesArray[15] = "Oxfordshire";
	countyNamesArray[16] = "Staffordshire";
	countyNamesArray[17] = "Warwickshire";
	countyNamesArray[18] = "Wiltshire";
	countyNamesArray[19] = "Worcestershire";
	
	var myAbberSearch = document.getElementById(elementID).value;

	for (i=0; i<countyAbberArray.length; i++)
	{
		if (myAbberSearch.toLowerCase() == countyAbberArray[i].toLowerCase())
		{
			var mySearch = countyNamesArray[i];
			document.getElementById(elementID).value = mySearch;
		}
	}
}