function submitForm(form) {
    var objVal = form.query1.value;
    if((objVal == "")) {
        alert('Please type in a word or phrase to search for.');
        return false;
    }
    else {
        if(objVal.length < 3) {
            alert('Search must be at least 3 characters in length');
            return false;
        }
        else {
            if((objVal.indexOf('*')!=-1) || (objVal.indexOf(':')!=-1) || (objVal.indexOf('?')!=-1) || (objVal.indexOf(';')!=-1)) {
                alert('Search contains 1 or more invalid search characters: *;:?');
                return false;
            }
            else {
                if((objVal == 'and') || (objVal == 'the') || (objVal == 'has') || (objVal == 'not')) {
                    alert('Search contains 1 or more invalid search words: the,and,has,not');
                    return false;
                }
            	else {
                	return true;
                }
        	}
    	}
	}
}