/*
 * Name:        textsearch.js
 * 
 * Description: Common Javascript functions forthe text search screen. 
 *  
 * Created:     May 21, 2006
 * Developer:   shadfield - for Blue's Arthouse
 *              www.bluesarthouse.com
 */
/*------------------------------------------------------------
 * function findChapterList() - sets book_id and action for 
 * the display_verses page.
 *------------------------------------------------------------
 */
function findChapterList (f)
{
	f.book_id.value = f.book.value;
	f.chapter_id.value = 0;
	f.verse_id.value = 0;
	f.action.value = 'getChapters';
	//alert('book_id='+f.book_id.value+'; action='+f.action.value);
	f.submit();
}

/*------------------------------------------------------------
 * function set_Radio() - sets the chapter_id and action for 
 * the display_verses page.
 *------------------------------------------------------------
 */
function findVerseList (f)
{
	f.chapter_id.value = f.chapter.value;
	f.verse_id.value = 0;
	f.action.value = 'getVerses';
	//alert('chapter_id='+f.chapter_id.value+'; action='+f.action.value);
	f.submit();
}

/*------------------------------------------------------------
 * function doVerseLookup() - sets the verse_id and action for 
 * the display_verses page.
 *------------------------------------------------------------
 */
function doVerseLookup (f)
{
	f.verse_id.value = f.verse.value;
	f.action.value = 'dsplyVerses';
	//alert('verse_id='+f.verse_id.value+'; action='+f.action.value);
	f.submit();
}

