//Function toggleDiv(inVal) displays and hides content
function toggleDiv(inVal) {
	if (document.getElementById(inVal).style.display == ""){	//Checks if content is displayed
		document.getElementById(inVal).style.display = "none";	//Hides content if content is displayed
	}
	else {
		document.getElementById(inVal).style.display = "";	//Displays content if content is hidden
	}
}

//Function fillDropdown(dropdown) fills a submenu with items in the respective arrays
function fillDropdown(dropdown) {
	var select = new Array("Please select an area of law from the dropdown list above");	//Declares alternative as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var abuse = new Array("Margaret Bateman");	//Declares abuse as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var adt = new Array("Rob Nicol");	//Declares alternative as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var administrative = new Array("Margaret Bateman",	//Declares administrative as an array of 2 indexes for the purposes of the fillDropdown(dropdown) function
									"Peter Lowe");
	var affray = new Array("Jill McIntosh");	//Declares affray as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var adr = new Array("Jill McIntosh");	//Declares adr as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var appellate = new Array("Margaret Bateman",	//Declares appellate as an array of 2 indexes for the purposes of the fillDropdown(dropdown) function
								"Marla Dudhee");
	var apprehended = new Array("Rob Nicol",	//Declares apprehended as an array of 3 indexes for the purposes of the fillDropdown(dropdown) function
								"Jonathon Taylor",
								"Chris Nowlan");
	var armed = new Array("Peter Lowe");	//Declares armed as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var asic = new Array("Peter Lowe");	//Declares asic as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var assault = new Array("Peter Lowe",	//Declares assault as an array of 4 indexes for the purposes of the fillDropdown(dropdown) function
							"Jonathon Taylor",
							"Jill McIntosh",
							"Chris Nowlan");
	var attempted = new Array("Peter Lowe");	//Declares attempted as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var bail = new Array("Jonathon Taylor",	//Declares bail as an array of 3 indexes for the purposes of the fillDropdown(dropdown) function
						"Jill McIntosh",
						"Chris Nowlan");
	var building = new Array("Jonathon Taylor",	//Declares building as an array of 2 indexes for the purposes of the fillDropdown(dropdown) function
							"Chris Nowlan");
	var caveats = new Array("Jill McIntosh");	//Declares caveats as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var child = new Array("Maureen Fanning");	//Declares child as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var child_porn = new Array("Jonathon Taylor");	//Declares child_porn as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var commerce = new Array("Margaret Bateman");	//Declares security as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var commercial = new Array("Mel Bloom",	//Declares commercial as an array of 3 indexes for the purposes of the fillDropdown(dropdown) function
							"Jill McIntosh");
	var common = new Array("Terry Luckman");	//Declares common as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var conspiracy = new Array("Peter Lowe");	//Declares conspiracy as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var construction = new Array("Terry Luckman",	//Declares construction as an array of 2 indexes for the purposes of the fillDropdown(dropdown) function	
								"Jonathon Taylor",
								"Chris Nowlan");
	var consumer = new Array("Jonathon Taylor");	//Declares consumer as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var contempt = new Array("Peter Lowe",	//Declares contempt as an array of 2 indexes for the purposes of the fillDropdown(dropdown) function
							"Chris Nowlan");
	var contractual = new Array("Margaret Bateman",	//Declares construction as an array of 3 indexes for the purposes of the fillDropdown(dropdown) function
								"Jill McIntosh");
	var contravention = new Array("Maureen Fanning",
								"Jill McIntosh");	//Declares contravention as an array of 2 indexes for the purposes of the fillDropdown(dropdown) function
	var copyright = new Array("Chris Nowlan");	//Declares coronial as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var coronial = new Array("Mel Bloom");	//Declares coronial as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var corporations = new Array("Peter Lowe");	//Declares corporations as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var costs = new Array("Margaret Bateman");	//Declares coronial as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var criminal = new Array("Mel Bloom",	//Declares criminal as an array of 13 indexes for the purposes of the fillDropdown(dropdown) function
							"Rob Nicol",
							"Terry Luckman",
							"Peter Lavac",
							"Margaret Bateman",
							"Marla Dudhee",
							"Peter Lowe",
							"Maureen Fanning",
							"Jonathon Taylor",
							"Jill McIntosh",
							"Chris Nowlan");
	var trials = new Array("Rob Nicol",		//Declares trials as an array of 3 indexes for the purposes of the fillDropdown(dropdown) function
							"Peter Lavac",
							"Maureen Fanning");
	var cttt = new Array("Jonathon Taylor");	//Declares cttt as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var customs = new Array("Margaret Bateman");	//Declares security as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var dangerous = new Array("Jonathon Taylor");	//Declares dangerous as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var defacto = new Array("Margaret Bateman",
							"Jill McIntosh");	//Declares defacto as an array of 2 indexes for the purposes of the fillDropdown(dropdown) function
	var disclosure = new Array("Peter Lowe");	//Declares disclosure as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var discrimination = new Array("Jill McIntosh");	//Declares discrimination as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var divorce = new Array("Jill McIntosh");	//Declares divorce as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var drink = new Array("Jonathon Taylor",	//Declares drink as an array of 2 indexes for the purposes of the fillDropdown(dropdown) function
						"Jill McIntosh");
	var driving = new Array("Peter Lowe");	//Declares driving as an array of 1 index for the purposes of the fillDropdown(dropdown) function	
	var freedom = new Array("Peter Lowe");	//Declares freedom as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var forfeiture = new Array("Peter Lowe");	//Declares forfeiture as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var importation = new Array("Peter Lowe");	//Declares importation as an array of 1 index for the purposes of the fillDropdown(dropdown) function 
	var drug = new Array("Peter Lowe");	//Declares drug as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var drug_possession = new Array("Jonathon Taylor");	//Declares drug as an array of 1 index for the purposes of the fillDropdown(dropdown) function	
	var supply = new Array("Peter Lowe",
							"Jonathon Taylor");	//Declares supply as an array of 2 index for the purposes of the fillDropdown(dropdown) function 
	var trafficking = new Array("Peter Lowe");	//Declares trafficking as an array of 1 index for the purposes of the fillDropdown(dropdown) function 
	var dcourt = new Array("Mel Bloom",	//Declares dcourt as an array of 5 indexes for the purposes of the fillDropdown(dropdown) function  
							"Rob Nicol",
							"Peter Lowe",
							"Jonathon Taylor",
							"Jill McIntosh");
	var demand = new Array("Peter Lowe");	//Declares demand as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var disclosure = new Array("Peter Lowe");	//Declares disclosure as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var equity = new Array("Margaret Bateman",	//Declares equity as an array of 5 indexes for the purposes of the fillDropdown(dropdown) function 
							"Marla Dudhee",
							"Jonathon Taylor");
	var environmental = new Array("Peter Lowe");	//Declares environmental as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var fam_court_aust = new Array("Jill McIntosh");	//Declares fam_court_aust as an array of 1 index for the purposes of the fillDropdown(dropdown) function	
	var family = new Array("Margaret Bateman",	//Declares family as an array of 6 indexes for the purposes of the fillDropdown(dropdown) function
							"Marla Dudhee",
							"Maureen Fanning",
							"Jill McIntosh",
							"Chris Nowlan");
	var fed_mags_court = new Array("Jill McIntosh");	//Declares fed_mags_court as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var gst = new Array("Peter Lowe");	//Declares gst as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var icl = new Array("Margaret Bateman");	//Declares icl as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var insurance = new Array("Jill McIntosh");	//Declares insurance as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var larceny = new Array("Jonathon Taylor");	//Declares larceny as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var lcourt = new Array("Mel Bloom",	//Declares lcourt as an array of 5 indexes for the purposes of the fillDropdown(dropdown) function  
							"Rob Nicol",
							"Peter Lowe",
							"Jonathon Taylor",
							"Jill McIntosh");	
	var manslaughter = new Array("Peter Lowe");	//Declares manslaughter as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var marital = new Array("Margaret Bateman");	//Declares marital as an array of 1 index for the purposes of the fillDropdown(dropdown) function  
	var mediation = new Array("Jill McIntosh");	//Declares mediation as an array of 1 index for the purposes of the fillDropdown(dropdown) function  
	var mental = new Array("Marla Dudhee");	//Declares mental as an array of 1 index for the purposes of the fillDropdown(dropdown) function  
	var migration = new Array("Margaret Bateman");	//Declares migration as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var money = new Array("Peter Lowe",
							"Jonathon Taylor");	//Declares money as an array of 2 index for the purposes of the fillDropdown(dropdown) function 
	var murder = new Array("Peter Lowe");	//Declares murder as an array of 1 index for the purposes of the fillDropdown(dropdown) function								
	var occupational = new Array("Margaret Bateman");	//Declares occupational as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var parenting = new Array("Margaret Bateman",		//Declares parenting as an array of 4 indexes for the purposes of the fillDropdown(dropdown) function 
								"Maureen Fanning",
								"Jill McIntosh",
								"Chris Nowlan");
	var procedural = new Array("Margaret Bateman");	//Declares procedural as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var proceeds = new Array("Peter Lowe");	//Declares proceeds as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var prop_alteration = new Array("Maureen Fanning",	//Declares prop_alteration as an array of 3 indexes for the purposes of the fillDropdown(dropdown) function	
									"Jill McIntosh",
									"Chris Nowlan");
	var property = new Array("Marla Dudhee",	//Declares property as an array of 2 indexes for the purposes of the fillDropdown(dropdown) function
							"Jill McIntosh");
	var relocation = new Array("Jill McIntosh");	//Declares relocation as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var robbery = new Array("Jill McIntosh");	//Declares relocation as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var scourt = new Array("Mel Bloom",	//Declares scourt as an array of 5 indexes for the purposes of the fillDropdown(dropdown) function  
							"Rob Nicol",
							"Peter Lowe",
							"Jonathon Taylor",
							"Jill McIntosh");
	var section10 = new Array("Chris Nowlan");	//Declares security as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var security = new Array("Margaret Bateman");	//Declares security as an array of 1 index for the purposes of the fillDropdown(dropdown) function							
	var sentencing = new Array("Rob Nicol",	//Declares security as an array of 7 indexes for the purposes of the fillDropdown(dropdown) function
								"Peter Lavac",
								"Margaret Bateman",
								"Maureen Fanning",
								"Jonathon Taylor",
								"Jill McIntosh",
								"Chris Nowlan");							
	var sexual = new Array("Peter Lowe");	//Declares sexual as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var solicit = new Array("Peter Lowe");	//Declares solicit as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var solicitors = new Array("Margaret Bateman");	//Declares security as an array of 1 index for the purposes of the fillDropdown(dropdown) function							
	var specific = new Array("Maureen Fanning",	//Declares specific as an array of 2 indexes for the purposes of the fillDropdown(dropdown) function
							"Chris Nowlan");
	var speeding = new Array("Jonathon Taylor");	//Declares speeding as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var spousal = new Array("Jill McIntosh");	//Declares spousal as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var taxation = new Array("Margaret Bateman");	//Declares security as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var taxfraud = new Array("Peter Lowe");	//Declares taxfraud as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var trade = new Array("Jill McIntosh");	//Declares trade as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var traffic = new Array("Mel Bloom",	//Declares traffic as an array of 4 indexes for the purposes of the fillDropdown(dropdown) function  
							"Peter Lowe",
							"Jonathon Taylor",
							"Jill McIntosh");
	var trusts = new Array("Margaret Bateman");	//Declares trusts as an array of 1 index for the purposes of the fillDropdown(dropdown) function							
	var unlicensed = new Array("Jonathon Taylor");	//Declares want as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var want = new Array("Margaret Bateman");	//Declares want as an array of 1 index for the purposes of the fillDropdown(dropdown) function	
	var wills = new Array("Mel Bloom",	//Declares wills as an array of 4 indexes for the purposes of the fillDropdown(dropdown) function 
							"Jill McIntosh");
	var wound = new Array("Peter Lowe");	//Declares want as an array of 1 index for the purposes of the fillDropdown(dropdown) function
	var selectedVal = dropdown.value;	//Declares selectedVal to be the value chosen from the dropdown menu
	var venue = document.getElementById('venue');	//Declares article to be the element with the id of article  	
	removeAllOptions(venue);	//Executes the removeAllOptions(venue) function
		if(selectedVal == "select") {	//Checks if selectedVal is select
			for (var i=0; i < select.length; ++i) {	//If selectedVal is select, declares i to be 0, whilst i is less than the length of the select array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = select[i];	//Uses the text object to create a dropdown textbox
				optn.value = select[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}
		else if(selectedVal == "abuse") {	//Checks if selectedVal is abuse
			for (var i=0; i < abuse.length; ++i) {	//If selectedVal is abuse, declares i to be 0, whilst i is less than the length of the abuse array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = abuse[i];	//Uses the text object to create a dropdown textbox
				optn.value = abuse[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}
		else if(selectedVal == "adr") {	//Checks if selectedVal is adr
			for (var i=0; i < adr.length; ++i) {	//If selectedVal is adr, declares i to be 0, whilst i is less than the length of the adr array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = adr[i];	//Uses the text object to create a dropdown textbox
				optn.value = adr[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}		
		else if(selectedVal == "adt") {	//Checks if selectedVal is adt
			for (var i=0; i < adt.length; ++i) {	//If selectedVal is adt, declares i to be 0, whilst i is less than the length of the adt array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = adt[i];	//Uses the text object to create a dropdown textbox
				optn.value = adt[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}
		else if(selectedVal == "administrative") {	//Checks if selectedVal is administrative
			for (var i=0; i < administrative.length; ++i) {	//If selectedVal is administrative, declares i to be 0, whilst i is less than the length of the administrative array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = administrative[i];	//Uses the text object to create a dropdown textbox
				optn.value = administrative[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}
		else if(selectedVal == "affray") {	//Checks if selectedVal is affray
			for (var i=0; i < affray.length; ++i) {	//If selectedVal is affray, declares i to be 0, whilst i is less than the length of the affray array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = affray[i];	//Uses the text object to create a dropdown textbox
				optn.value = affray[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}		
		else if(selectedVal == "alternative") {	//Checks if selectedVal is alternative
			for (var i=0; i < alternative.length; ++i) {	//If selectedVal is alternative, declares i to be 0, whilst i is less than the length of the alternative array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = alternative[i];	//Uses the text object to create a dropdown textbox
				optn.value = alternative[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}
		else if(selectedVal == "appellate") {	//Checks if selectedVal is appellate
			for (var i=0; i < appellate.length; ++i) {	//If selectedVal is appellate, declares i to be 0, whilst i is less than the length of the appellate array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = appellate[i];	//Uses the text object to create a dropdown textbox
				optn.value = appellate[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}
		else if(selectedVal == "apprehended") {	//Checks if selectedVal is apprehended
			for (var i=0; i < apprehended.length; ++i) {	//If selectedVal is apprehended, declares i to be 0, whilst i is less than the length of the apprehended array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = apprehended[i];	//Uses the text object to create a dropdown textbox
				optn.value = apprehended[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}
		else if(selectedVal == "armed") {	//Checks if selectedVal is armed
			for (var i=0; i < armed.length; ++i) {	//If selectedVal is armed, declares i to be 0, whilst i is less than the length of the armed array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = armed[i];	//Uses the text object to create a dropdown textbox
				optn.value = armed[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}		
		else if(selectedVal == "asic") {	//Checks if selectedVal is asic
			for (var i=0; i < asic.length; ++i) {	//If selectedVal is asic, declares i to be 0, whilst i is less than the length of the asic array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = asic[i];	//Uses the text object to create a dropdown textbox
				optn.value = asic[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}
		else if(selectedVal == "assault") {	//Checks if selectedVal is assault
			for (var i=0; i < assault.length; ++i) {	//If selectedVal is assault, declares i to be 0, whilst i is less than the length of the assault array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = assault[i];	//Uses the text object to create a dropdown textbox
				optn.value = assault[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}		
		else if(selectedVal == "attempted") {	//Checks if selectedVal is attempted
			for (var i=0; i < attempted.length; ++i) {	//If selectedVal is attempted, declares i to be 0, whilst i is less than the length of the attempted array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = attempted[i];	//Uses the text object to create a dropdown textbox
				optn.value = attempted[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}
		else if(selectedVal == "bail") {	//Checks if selectedVal is bail
			for (var i=0; i < bail.length; ++i) {	//If selectedVal is bail, declares i to be 0, whilst i is less than the length of the bail array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = bail[i];	//Uses the text object to create a dropdown textbox
				optn.value = bail[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}
		else if(selectedVal == "building") {	//Checks if selectedVal is building
			for (var i=0; i < building.length; ++i) {	//If selectedVal is building, declares i to be 0, whilst i is less than the length of the building array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = building[i];	//Uses the text object to create a dropdown textbox
				optn.value = building[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}		
		else if(selectedVal == "caveats") {	//Checks if selectedVal is caveats
			for (var i=0; i < caveats.length; ++i) {	//If selectedVal is caveats, declares i to be 0, whilst i is less than the length of the caveats array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = caveats[i];	//Uses the text object to create a dropdown textbox
				optn.value = caveats[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}
		else if(selectedVal == "child") {	//Checks if selectedVal is child
			for (var i=0; i < child.length; ++i) {	//If selectedVal is child, declares i to be 0, whilst i is less than the length of the child array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = child[i];	//Uses the text object to create a dropdown textbox
				optn.value = child[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}
		else if(selectedVal == "child_porn") {	//Checks if selectedVal is child_porn
			for (var i=0; i < child_porn.length; ++i) {	//If selectedVal is child_porn, declares i to be 0, whilst i is less than the length of the child_porn array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = child_porn[i];	//Uses the text object to create a dropdown textbox
				optn.value = child_porn[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}		
		else if(selectedVal == "commerce") {	//Checks if selectedVal is commerce
			for (var i=0; i < commerce.length; ++i) {	//If selectedVal is commerce, declares i to be 0, whilst i is less than the length of the commerce array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = commerce[i];	//Uses the text object to create a dropdown textbox
				optn.value = commerce[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}
		else if(selectedVal == "commercial") {	//Checks if selectedVal is commercial
			for (var i=0; i < commercial.length; ++i) {	//If selectedVal is commercial, declares i to be 0, whilst i is less than the length of the commercial array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = commercial[i];	//Uses the text object to create a dropdown textbox
				optn.value = commercial[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}
		else if(selectedVal == "common") {	//Checks if selectedVal is common
			for (var i=0; i < common.length; ++i) {	//If selectedVal is common, declares i to be 0, whilst i is less than the length of the common array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = common[i];	//Uses the text object to create a dropdown textbox
				optn.value = common[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}
		else if(selectedVal == "conspiracy") {	//Checks if selectedVal is conspiracy
			for (var i=0; i < conspiracy.length; ++i) {	//If selectedVal is conspiracy, declares i to be 0, whilst i is less than the length of the conspiracy array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = conspiracy[i];	//Uses the text object to create a dropdown textbox
				optn.value = conspiracy[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}		
		else if(selectedVal == "construction") {	//Checks if selectedVal is construction
			for (var i=0; i < construction.length; ++i) {	//If selectedVal is construction, declares i to be 0, whilst i is less than the length of the construction array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = construction[i];	//Uses the text object to create a dropdown textbox
				optn.value = construction[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}
		else if(selectedVal == "consumer") {	//Checks if selectedVal is consumer
			for (var i=0; i < consumer.length; ++i) {	//If selectedVal is consumer, declares i to be 0, whilst i is less than the length of the consumer array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = consumer[i];	//Uses the text object to create a dropdown textbox
				optn.value = consumer[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}		
		else if(selectedVal == "contempt") {	//Checks if selectedVal is contempt
			for (var i=0; i < contempt.length; ++i) {	//If selectedVal is contempt, declares i to be 0, whilst i is less than the length of the contempt array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = contempt[i];	//Uses the text object to create a dropdown textbox
				optn.value = contempt[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}
		else if(selectedVal == "contractual") {	//Checks if selectedVal is contractual
			for (var i=0; i < contractual.length; ++i) {	//If selectedVal is contractual, declares i to be 0, whilst i is less than the length of the contractual array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = contractual[i];	//Uses the text object to create a dropdown textbox
				optn.value = contractual[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}
		else if(selectedVal == "contravention") {	//Checks if selectedVal is contravention
			for (var i=0; i < contravention.length; ++i) {	//If selectedVal is contravention, declares i to be 0, whilst i is less than the length of the contravention array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = contravention[i];	//Uses the text object to create a dropdown textbox
				optn.value = contravention[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}
		else if(selectedVal == "copyright") {	//Checks if selectedVal is copyright
			for (var i=0; i < copyright.length; ++i) {	//If selectedVal is copyright, declares i to be 0, whilst i is less than the length of the copyright array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = copyright[i];	//Uses the text object to create a dropdown textbox
				optn.value = copyright[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}		
		else if(selectedVal == "coronial") {	//Checks if selectedVal is coronial
			for (var i=0; i < coronial.length; ++i) {	//If selectedVal is coronial, declares i to be 0, whilst i is less than the length of the coronial array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = coronial[i];	//Uses the text object to create a dropdown textbox
				optn.value = coronial[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}
		else if(selectedVal == "corporations") {	//Checks if selectedVal is corporations
			for (var i=0; i < corporations.length; ++i) {	//If selectedVal is corporations, declares i to be 0, whilst i is less than the length of the corporations array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = corporations[i];	//Uses the text object to create a dropdown textbox
				optn.value = corporations[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}		
		else if(selectedVal == "costs") {	//Checks if selectedVal is costs
			for (var i=0; i < costs.length; ++i) {	//If selectedVal is costs, declares i to be 0, whilst i is less than the length of the costs array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = costs[i];	//Uses the text object to create a dropdown textbox
				optn.value = costs[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}		
		else if(selectedVal == "criminal") {	//Checks if selectedVal is criminal
			for (var i=0; i < criminal.length; ++i) {	//If selectedVal is criminal, declares i to be 0, whilst i is less than the length of the criminal array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = criminal[i];	//Uses the text object to create a dropdown textbox
				optn.value = criminal[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}
		else if(selectedVal == "trials") {	//Checks if selectedVal is trials
			for (var i=0; i < trials.length; ++i) {	//If selectedVal is trials, declares i to be 0, whilst i is less than the length of the trials array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = trials[i];	//Uses the text object to create a dropdown textbox
				optn.value = trials[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}
		else if(selectedVal == "cttt") {	//Checks if selectedVal is cttt
			for (var i=0; i < cttt.length; ++i) {	//If selectedVal is cttt, declares i to be 0, whilst i is less than the length of the cttt array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = cttt[i];	//Uses the text object to create a dropdown textbox
				optn.value = cttt[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}		
		else if(selectedVal == "customs") {	//Checks if selectedVal is customs
			for (var i=0; i < customs.length; ++i) {	//If selectedVal is customs, declares i to be 0, whilst i is less than the length of the customs array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = customs[i];	//Uses the text object to create a dropdown textbox
				optn.value = customs[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "dangerous") {	//Checks if selectedVal is dangerous
			for (var i=0; i < dangerous.length; ++i) {	//If selectedVal is dangerous, declares i to be 0, whilst i is less than the length of the dangerous array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = dangerous[i];	//Uses the text object to create a dropdown textbox
				optn.value = dangerous[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "dcourt") {	//Checks if selectedVal is dcourt
			for (var i=0; i < dcourt.length; ++i) {	//If selectedVal is dcourt, declares i to be 0, whilst i is less than the length of the dcourt array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = dcourt[i];	//Uses the text object to create a dropdown textbox
				optn.value = dcourt[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "defacto") {	//Checks if selectedVal is defacto
			for (var i=0; i < defacto.length; ++i) {	//If selectedVal is defacto, declares i to be 0, whilst i is less than the length of the defacto array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = defacto[i];	//Uses the text object to create a dropdown textbox
				optn.value = defacto[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "demand") {	//Checks if selectedVal is demand
			for (var i=0; i < demand.length; ++i) {	//If selectedVal is demand, declares i to be 0, whilst i is less than the length of the demand array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = demand[i];	//Uses the text object to create a dropdown textbox
				optn.value = demand[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}		
		else if(selectedVal == "disclosure") {	//Checks if selectedVal is disclosure
			for (var i=0; i < disclosure.length; ++i) {	//If selectedVal is disclosure, declares i to be 0, whilst i is less than the length of the disclosure array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = disclosure[i];	//Uses the text object to create a dropdown textbox
				optn.value = disclosure[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "discrimination") {	//Checks if selectedVal is discrimination
			for (var i=0; i < discrimination.length; ++i) {	//If selectedVal is discrimination, declares i to be 0, whilst i is less than the length of the discrimination array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = discrimination[i];	//Uses the text object to create a dropdown textbox
				optn.value = discrimination[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}		
		else if(selectedVal == "divorce") {	//Checks if selectedVal is divorce
			for (var i=0; i < divorce.length; ++i) {	//If selectedVal is divorce, declares i to be 0, whilst i is less than the length of the divorce array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = divorce[i];	//Uses the text object to create a dropdown textbox
				optn.value = divorce[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}		
		else if(selectedVal == "drink") {	//Checks if selectedVal is drink
			for (var i=0; i < drink.length; ++i) {	//If selectedVal is drink, declares i to be 0, whilst i is less than the length of the drink array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = drink[i];	//Uses the text object to create a dropdown textbox
				optn.value = drink[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "driving") {	//Checks if selectedVal is driving
			for (var i=0; i < driving.length; ++i) {	//If selectedVal is driving, declares i to be 0, whilst i is less than the length of the driving array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = driving[i];	//Uses the text object to create a dropdown textbox
				optn.value = driving[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}		
		else if(selectedVal == "importation") {	//Checks if selectedVal is importation
			for (var i=0; i < importation.length; ++i) {	//If selectedVal is importation, declares i to be 0, whilst i is less than the length of the defacto array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = importation[i];	//Uses the text object to create a dropdown textbox
				optn.value = importation[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "drug") {	//Checks if selectedVal is drug
			for (var i=0; i < drug.length; ++i) {	//If selectedVal is drug, declares i to be 0, whilst i is less than the length of the drug array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = drug[i];	//Uses the text object to create a dropdown textbox
				optn.value = drug[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "drug_possession") {	//Checks if selectedVal is drug_possession
			for (var i=0; i < drug_possession.length; ++i) {	//If selectedVal is drug_possession, declares i to be 0, whilst i is less than the length of the drug_possession array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = drug_possession[i];	//Uses the text object to create a dropdown textbox
				optn.value = drug_possession[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}		
		else if(selectedVal == "supply") {	//Checks if selectedVal is supply
			for (var i=0; i < supply.length; ++i) {	//If selectedVal is supply, declares i to be 0, whilst i is less than the length of the defacto array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = supply[i];	//Uses the text object to create a dropdown textbox
				optn.value = supply[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "trafficking") {	//Checks if selectedVal is trafficking
			for (var i=0; i < trafficking.length; ++i) {	//If selectedVal is trafficking, declares i to be 0, whilst i is less than the length of the defacto array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = trafficking[i];	//Uses the text object to create a dropdown textbox
				optn.value = trafficking[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}		
		else if(selectedVal == "environmental") {	//Checks if selectedVal is environmental
			for (var i=0; i < environmental.length; ++i) {	//If selectedVal is environmental, declares i to be 0, whilst i is less than the length of the environmental array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = environmental[i];	//Uses the text object to create a dropdown textbox
				optn.value = environmental[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "equity") {	//Checks if selectedVal is equity
			for (var i=0; i < equity.length; ++i) {	//If selectedVal is equity, declares i to be 0, whilst i is less than the length of the equity array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = equity[i];	//Uses the text object to create a dropdown textbox
				optn.value = equity[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "fam_court_aust") {	//Checks if selectedVal is fam_court_aust
			for (var i=0; i < fam_court_aust.length; ++i) {	//If selectedVal is fam_court_aust, declares i to be 0, whilst i is less than the length of the fam_court_aust array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = fam_court_aust[i];	//Uses the text object to create a dropdown textbox
				optn.value = fam_court_aust[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "family") {	//Checks if selectedVal is family
			for (var i=0; i < family.length; ++i) {	//If selectedVal is family, declares i to be 0, whilst i is less than the length of the family array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = family[i];	//Uses the text object to create a dropdown textbox
				optn.value = family[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "fed_mags_court") {	//Checks if selectedVal is fed_mags_court
			for (var i=0; i < fed_mags_court.length; ++i) {	//If selectedVal is fed_mags_court, declares i to be 0, whilst i is less than the length of the fed_mags_court array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = fed_mags_court[i];	//Uses the text object to create a dropdown textbox
				optn.value = fed_mags_court[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}		
		else if(selectedVal == "forfeiture") {	//Checks if selectedVal is forfeiture
			for (var i=0; i < forfeiture.length; ++i) {	//If selectedVal is forfeiture, declares i to be 0, whilst i is less than the length of the forfeiture array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = forfeiture[i];	//Uses the text object to create a dropdown textbox
				optn.value = forfeiture[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}		
		else if(selectedVal == "freedom") {	//Checks if selectedVal is freedom
			for (var i=0; i < freedom.length; ++i) {	//If selectedVal is freedom, declares i to be 0, whilst i is less than the length of the freedom array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = freedom[i];	//Uses the text object to create a dropdown textbox
				optn.value = freedom[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}		
		else if(selectedVal == "gst") {	//Checks if selectedVal is gst
			for (var i=0; i < gst.length; ++i) {	//If selectedVal is gst, declares i to be 0, whilst i is less than the length of the family array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = gst[i];	//Uses the text object to create a dropdown textbox
				optn.value = gst[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}		
		else if(selectedVal == "icl") {	//Checks if selectedVal is icl
			for (var i=0; i < icl.length; ++i) {	//If selectedVal is icl, declares i to be 0, whilst i is less than the length of the icl array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = icl[i];	//Uses the text object to create a dropdown textbox
				optn.value = icl[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "insurance") {	//Checks if selectedVal is insurance
			for (var i=0; i < insurance.length; ++i) {	//If selectedVal is insurance, declares i to be 0, whilst i is less than the length of the insurance array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = insurance[i];	//Uses the text object to create a dropdown textbox
				optn.value = insurance[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}		
		else if(selectedVal == "lcourt") {	//Checks if selectedVal is lcourt
			for (var i=0; i < lcourt.length; ++i) {	//If selectedVal is lcourt, declares i to be 0, whilst i is less than the length of the lcourt array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = lcourt[i];	//Uses the text object to create a dropdown textbox
				optn.value = lcourt[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "larceny") {	//Checks if selectedVal is larceny
			for (var i=0; i < larceny.length; ++i) {	//If selectedVal is larceny, declares i to be 0, whilst i is less than the length of the larceny array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = larceny[i];	//Uses the text object to create a dropdown textbox
				optn.value = larceny[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "local") {	//Checks if selectedVal is local
			for (var i=0; i < local.length; ++i) {	//If selectedVal is local, declares i to be 0, whilst i is less than the length of the local array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = local[i];	//Uses the text object to create a dropdown textbox
				optn.value = local[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "manslaughter") {	//Checks if selectedVal is manslaughter
			for (var i=0; i < manslaughter.length; ++i) {	//If selectedVal is manslaughter, declares i to be 0, whilst i is less than the length of the manslaughter array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = manslaughter[i];	//Uses the text object to create a dropdown textbox
				optn.value = manslaughter[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "marital") {	//Checks if selectedVal is marital
			for (var i=0; i < marital.length; ++i) {	//If selectedVal is marital, declares i to be 0, whilst i is less than the length of the marital array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = marital[i];	//Uses the text object to create a dropdown textbox
				optn.value = marital[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "mediation") {	//Checks if selectedVal is mediation
			for (var i=0; i < mediation.length; ++i) {	//If selectedVal is mediation, declares i to be 0, whilst i is less than the length of the mediation array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = mediation[i];	//Uses the text object to create a dropdown textbox
				optn.value = mediation[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}		
		else if(selectedVal == "medical") {	//Checks if selectedVal is medical
			for (var i=0; i < medical.length; ++i) {	//If selectedVal is medical, declares i to be 0, whilst i is less than the length of the medical array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = medical[i];	//Uses the text object to create a dropdown textbox
				optn.value = medical[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "mental") {	//Checks if selectedVal is mental
			for (var i=0; i < mental.length; ++i) {	//If selectedVal is mental, declares i to be 0, whilst i is less than the length of the mental array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = mental[i];	//Uses the text object to create a dropdown textbox
				optn.value = mental[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}		
		else if(selectedVal == "migration") {	//Checks if selectedVal is migration
			for (var i=0; i < migration.length; ++i) {	//If selectedVal is migration, declares i to be 0, whilst i is less than the length of the migration array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = migration[i];	//Uses the text object to create a dropdown textbox
				optn.value = migration[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}		
		else if(selectedVal == "money") {	//Checks if selectedVal is money
			for (var i=0; i < money.length; ++i) {	//If selectedVal is money, declares i to be 0, whilst i is less than the length of the money array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = money[i];	//Uses the text object to create a dropdown textbox
				optn.value = money[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "motor") {	//Checks if selectedVal is motor
			for (var i=0; i < motor.length; ++i) {	//If selectedVal is motor, declares i to be 0, whilst i is less than the length of the motor array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = motor[i];	//Uses the text object to create a dropdown textbox
				optn.value = motor[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "murder") {	//Checks if selectedVal is murder
			for (var i=0; i < murder.length; ++i) {	//If selectedVal is murder, declares i to be 0, whilst i is less than the length of the murder array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = murder[i];	//Uses the text object to create a dropdown textbox
				optn.value = murder[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}		
		else if(selectedVal == "occupational") {	//Checks if selectedVal is occupational
			for (var i=0; i < occupational.length; ++i) {	//If selectedVal is occupational, declares i to be 0, whilst i is less than the length of the occupational array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = occupational[i];	//Uses the text object to create a dropdown textbox
				optn.value = occupational[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "parenting") {	//Checks if selectedVal is parenting
			for (var i=0; i < parenting.length; ++i) {	//If selectedVal is parenting, declares i to be 0, whilst i is less than the length of the parenting array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = parenting[i];	//Uses the text object to create a dropdown textbox
				optn.value = parenting[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "procedural") {	//Checks if selectedVal is procedural
			for (var i=0; i < procedural.length; ++i) {	//If selectedVal is procedural, declares i to be 0, whilst i is less than the length of the procedural array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = procedural[i];	//Uses the text object to create a dropdown textbox
				optn.value = procedural[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "proceeds") {	//Checks if selectedVal is proceeds
			for (var i=0; i < proceeds.length; ++i) {	//If selectedVal is proceeds, declares i to be 0, whilst i is less than the length of the proceeds array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = proceeds[i];	//Uses the text object to create a dropdown textbox
				optn.value = proceeds[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}		
		else if(selectedVal == "professional") {	//Checks if selectedVal is professional
			for (var i=0; i < professional.length; ++i) {	//If selectedVal is professional, declares i to be 0, whilst i is less than the length of the professional array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = professional[i];	//Uses the text object to create a dropdown textbox
				optn.value = professional[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "prop_alteration") {	//Checks if selectedVal is prop_alteration
			for (var i=0; i < prop_alteration.length; ++i) {	//If selectedVal is prop_alteration, declares i to be 0, whilst i is less than the length of the prop_alteration array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = prop_alteration[i];	//Uses the text object to create a dropdown textbox
				optn.value = prop_alteration[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "property") {	//Checks if selectedVal is property
			for (var i=0; i < property.length; ++i) {	//If selectedVal is property, declares i to be 0, whilst i is less than the length of the property array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = property[i];	//Uses the text object to create a dropdown textbox
				optn.value = property[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "relocation") {	//Checks if selectedVal is relocation
			for (var i=0; i < relocation.length; ++i) {	//If selectedVal is relocation, declares i to be 0, whilst i is less than the length of the relocation array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = relocation[i];	//Uses the text object to create a dropdown textbox
				optn.value = relocation[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "robbery") {	//Checks if selectedVal is robbery
			for (var i=0; i < robbery.length; ++i) {	//If selectedVal is robbery, declares i to be 0, whilst i is less than the length of the robbery array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = robbery[i];	//Uses the text object to create a dropdown textbox
				optn.value = robbery[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}		
		else if(selectedVal == "scourt") {	//Checks if selectedVal is scourt
			for (var i=0; i < scourt.length; ++i) {	//If selectedVal is scourt, declares i to be 0, whilst i is less than the length of the scourt array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = scourt[i];	//Uses the text object to create a dropdown textbox
				optn.value = scourt[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "section10") {	//Checks if selectedVal is section10
			for (var i=0; i < section10.length; ++i) {	//If selectedVal is section10, declares i to be 0, whilst i is less than the length of the section10 array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = section10[i];	//Uses the text object to create a dropdown textbox
				optn.value = section10[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}		
		else if(selectedVal == "security") {	//Checks if selectedVal is security
			for (var i=0; i < security.length; ++i) {	//If selectedVal is security, declares i to be 0, whilst i is less than the length of the security array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = security[i];	//Uses the text object to create a dropdown textbox
				optn.value = security[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "sentencing") {	//Checks if selectedVal is sentencing
			for (var i=0; i < sentencing.length; ++i) {	//If selectedVal is sentencing, declares i to be 0, whilst i is less than the length of the sentencing array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = sentencing[i];	//Uses the text object to create a dropdown textbox
				optn.value = sentencing[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "sexual") {	//Checks if selectedVal is sexual
			for (var i=0; i < sexual.length; ++i) {	//If selectedVal is sexual, declares i to be 0, whilst i is less than the length of the sexual array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = sexual[i];	//Uses the text object to create a dropdown textbox
				optn.value = sexual[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}		
		else if(selectedVal == "solicit") {	//Checks if selectedVal is solicit
			for (var i=0; i < solicit.length; ++i) {	//If selectedVal is solicit, declares i to be 0, whilst i is less than the length of the solicit array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = solicit[i];	//Uses the text object to create a dropdown textbox
				optn.value = solicit[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "solicitors") {	//Checks if selectedVal is solicitors
			for (var i=0; i < solicitors.length; ++i) {	//If selectedVal is solicitors, declares i to be 0, whilst i is less than the length of the solicitors array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = solicitors[i];	//Uses the text object to create a dropdown textbox
				optn.value = solicitors[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "specific") {	//Checks if selectedVal is specific
			for (var i=0; i < specific.length; ++i) {	//If selectedVal is specific, declares i to be 0, whilst i is less than the length of the specific array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = specific[i];	//Uses the text object to create a dropdown textbox
				optn.value = specific[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "speeding") {	//Checks if selectedVal is speeding
			for (var i=0; i < speeding.length; ++i) {	//If selectedVal is speeding, declares i to be 0, whilst i is less than the length of the speeding array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = speeding[i];	//Uses the text object to create a dropdown textbox
				optn.value = speeding[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "spousal") {	//Checks if selectedVal is spousal
			for (var i=0; i < spousal.length; ++i) {	//If selectedVal is spousal, declares i to be 0, whilst i is less than the length of the spousal array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = spousal[i];	//Uses the text object to create a dropdown textbox
				optn.value = spousal[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}		
		else if(selectedVal == "taxation") {	//Checks if selectedVal is taxation
			for (var i=0; i < taxation.length; ++i) {	//If selectedVal is taxation, declares i to be 0, whilst i is less than the length of the taxation array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = taxation[i];	//Uses the text object to create a dropdown textbox
				optn.value = taxation[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "taxfraud") {	//Checks if selectedVal is taxfraud
			for (var i=0; i < taxfraud.length; ++i) {	//If selectedVal is taxfraud, declares i to be 0, whilst i is less than the length of the taxfraud array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = taxfraud[i];	//Uses the text object to create a dropdown textbox
				optn.value = taxfraud[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "trade") {	//Checks if selectedVal is trade
			for (var i=0; i < trade.length; ++i) {	//If selectedVal is trade, declares i to be 0, whilst i is less than the length of the trade array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = trade[i];	//Uses the text object to create a dropdown textbox
				optn.value = trade[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}		
		else if(selectedVal == "traffic") {	//Checks if selectedVal is traffic
			for (var i=0; i < traffic.length; ++i) {	//If selectedVal is traffic, declares i to be 0, whilst i is less than the length of the traffic array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = traffic[i];	//Uses the text object to create a dropdown textbox
				optn.value = traffic[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "trusts") {	//Checks if selectedVal is trusts
			for (var i=0; i < trusts.length; ++i) {	//If selectedVal is trusts, declares i to be 0, whilst i is less than the length of the trusts array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = trusts[i];	//Uses the text object to create a dropdown textbox
				optn.value = trusts[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "unlicensed") {	//Checks if selectedVal is unlicensed
			for (var i=0; i < unlicensed.length; ++i) {	//If selectedVal is unlicensed, declares i to be 0, whilst i is less than the length of the unlicensed array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = unlicensed[i];	//Uses the text object to create a dropdown textbox
				optn.value = unlicensed[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}
		else if(selectedVal == "want") {	//Checks if selectedVal is want
			for (var i=0; i < want.length; ++i) {	//If selectedVal is want, declares i to be 0, whilst i is less than the length of the want array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = want[i];	//Uses the text object to create a dropdown textbox
				optn.value = want[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn); //Writes the text in the respective dropdown textbox which that text is assigned to
			}
		}		
		else if(selectedVal == "wills") {	//Checks if selectedVal is wills
			for (var i=0; i < wills.length; ++i) {	//If selectedVal is wills, declares i to be 0, whilst i is less than the length of the wills array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = wills[i];	//Uses the text object to create a dropdown textbox
				optn.value = wills[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}
		else if(selectedVal == "wound") {	//Checks if selectedVal is wound
			for (var i=0; i < wound.length; ++i) {	//If selectedVal is wound, declares i to be 0, whilst i is less than the length of the wound array the for loop is executed and after each loop 1 is added to i
				var optn = document.createElement("option");	//Declares optn to be the created element object
				optn.text = wound[i];	//Uses the text object to create a dropdown textbox
				optn.value = wound[i];	//Uses the value object to assign the text to go in the respective dropdown textbox
				document.getElementById('venue').options.add(optn);	//Writes the text in the respective dropdown textbox which that text is assigned to 
			}
		}		
		else {
			alert("Sorry - there seems to be an error with this selection. Please select another area of law.");	//Writes an alert to the HTML page if none of the execution blocks
		}
	}
//Function removeAllOptions(selectbox) removes items in the submenu
function removeAllOptions(selectbox) {
		var i;	
		if(selectbox.options.length > 0) {	//Checks if the dropdown menu has more than 0 options
			for(i=selectbox.options.length-1; i >= 0; i--){	//If the dropdown menu has more than 0 options, this for loop progressively removes each of the options
				selectbox.remove(i);
			}
		}
	}

function popUp(newPage,popMode,popwidth,popheight)  {
	if(popwidth && popheight){
		var popProperties = "width=" + popwidth + ", height=" + popheight + ", left=0, top=0, scrollbars=auto,resizable=yes";
	}
	else if(popMode=="glos"){
		var popProperties = "width=600, height=400, left=2, top=2, scrollbars=yes,resizable=yes";
	}
	else if(popMode=="example"){
		var popProperties = "width=600, height=400, left=5, top=5, scrollbars=yes,resizable=yes";
	}
	else if(popMode=="other"){
		var popProperties = "width=600, height=590, left=2, top=2, scrollbars=yes,resizable=yes,toolbar=yes";
	}
	else if(popMode=="small"){
		var popProperties = "width=400, height=280, left=5, top=5, scrollbars=yes,resizable=yes";
	}
	else{
		var popProperties = "width=400, height=280, left=5, top=5, scrollbars=yes,resizable=yes";
	}
	newWindow = window.open(newPage, '', popProperties);
	newWindow.focus();
}
