function updtxt(){var f = document.forms[0]f.InputTxt.value = f.SearchTxt.value}function CheckForEnter( ) {	kc= window.event.keyCode	if (kc==13){//	alert("in Check for Enter")		doSearch()	}}function replace(target, oldTerm, newTerm, caseSens, wordOnly) {var work = target;var ind = 0;var next = 0;   if (!caseSens) {oldTerm = oldTerm.toLowerCase();work = target.toLowerCase();}   while ((ind = work.indexOf(oldTerm,next)) >= 0) {if (wordOnly) {var before = ind - 1;var after = ind + oldTerm.length;if (!(space(work.charAt(before)) && space(work.charAt(after)))) {next = ind + oldTerm.length;continue;}}target = target.substring(0,ind) + newTerm + target.substring(ind+oldTerm.length,target.length);work = work.substring(0,ind) + newTerm + work.substring(ind+oldTerm.length,work.length);next = ind + newTerm.length;if (next >= work.length) { break; }}return target;}function goSearch() {		path= '?searchview&query='//		alert(path)		p1 = trim(replace(document.forms[0].SearchTxt.value," and", '', false, false));		p2 = trim(replace(p1," or", '', false, false));		path+= replace(p2," ", '+', false, false);//		alert(path)		return path;}function doSearch(){var f = document.forms[0];//alert(f.SearchTxt.value)if (isEmpty(f.SearchTxt.value)) returnQueryStr =  goSearch();hostname = f.SERVER_NAME.value;path = f.dbpath.valueview = "vwSearch"QueryStr += "&count="  + f.PrevwCount.value + "&searchwv=true&searchorder=1&searchfuzzy=true"//QueryStr += "&count=10&searchwv=true&searchorder=1&searchfuzzy=true"retval = "http://" + hostname + "/" + path + "/" +  view + QueryStr;window.location =retval}
