// JavaScript Document
function submitSearchForm(root) {
	var query = document.getElementById("txtQuery");
	if(query.value=="") {
		alert("Please enter a valid query");
		//return false;
	} else {
		if(root==null)
			root = "";
			
		window.location.href="search.php?search="+query.value+"&section=Whole+Site";
	}
}