function loadSearchResults(id) {
q = document.forms[0].query.value
if (q == "") {
	document.forms[0].query.focus()
return
}
//replace spaces in query with "+"
v = q.split(" ")
s = v[0]
for (i=1;i<v.length;i++) {
s += "+"
s += v[i]
}
window.content.document.location.href = "../" + id + "/Search?SearchView&Query=" + s + "&SearchFuzzy=True&SearchWV=True"
}
function checkEnter(e,id) {
code = document.all?event.keyCode:e.which
if (code == 13) {
loadSearchResults(id)
return false
}
}
