// this variable is set by the calling page
var pageLevel

function doSearch() {
	if (document.frmSearch.txtSearch.value == "") {	
		alert("Please enter a word to search for.")
		return
	}
	if (pageLevel == "TOP") {
		document.location.href = "_search/searchHandler.asp?WORDS=" + document.frmSearch.txtSearch.value
	}else{
		document.location.href = "../_search/searchHandler.asp?WORDS=" + document.frmSearch.txtSearch.value
	}

}
