al_reference = reference
		}

		function add_table_of_contents(text) {
			
			var found = false
			var i
			for(i=0; i < global_stored_topics.length; i++) {
				if(global_stored_topics[i] == text) {
					found = true
					break
				}
			}
		
			if(!found) {
				global_stored_topics[global_stored_topics.length] = text
			}

		}

		function set_topic(text) {
			var tabledata = text.split("_")
			var dialogue = tabledata[1]
			var i
			var topics_html = ""

			dialogue = dialogue.replace(/NEWLINE/g, "<br>")
		