function display_fields(opt, sid) {
    if (document.getElementById(sid)) {
        document.getElementById(sid).style.display = (opt == 0)?"none":"block";
    }
}
function setSearchState(keywords, searchType) {
    if (document.searchFull) {
        document.searchFull.keywords.value = keywords;
        for (i = 0; i < document.searchFull.searchType.length; i++) {
            if (document.searchFull.searchType[i].value == searchType) {
                document.searchFull.searchType.selectedIndex = i;
                break;
            }
        }
    }
    if (document.topNav_searchForm) {
        document.topNav_searchForm.keywords.value = keywords;
	}
    if (document.searchForm) {
        document.searchForm.keywords.value = keywords;
    }
}