<!--
var chaptercount = new Array(0, 50, 40, 27, 36, 34, 24, 21, 4, 31, 24, 22, 25, 29, 36, 10, 13, 10, 42, 150, 31, 12, 8, 66, 52, 5, 48, 12, 14, 3, 9, 1, 4, 7, 3, 3, 3, 2, 14, 4, 28, 16, 24, 21, 28, 16, 16, 13, 6, 6, 4, 4, 5, 3, 6, 4, 3, 1, 13, 5, 5, 3, 5, 1, 1, 1, 22)

function selectBook() {
	b = document.getElementById("edit-book")
	bb = b.selectedIndex + 1
	c = document.getElementById("edit-chapter")
	cc = c.selectedIndex
	c.options.length = 0
	for (i = 0; i < chaptercount[bb]; i++) {
		o = new Option(i + 1, i + 1)
		c.options[i] = o
	}
	c.options[cc].selected = true
}

//-->

