makelist = function() {
	thelist = document.getElementsByTagName('span');
	for (j=0; j<thelist.length; j++) {
		node = thelist[j];
		node.ondblclick = function() {
			ref = this.id;
			check = ref.slice(0,1);
			if (check == 'q') {
				c = document.getElementById(ref);
				d = c.innerHTML;
				t = document.getElementById('text');
				if (t.value == '') {
					t.value += '"' + d + '"\n\n';
					} else {t.value += '\n\n"' + d + '"\n\n';}
				this.className="lit";
				t.focus();
			}
		}
	}
}
