function validate(form) {
    validateError="";
    form.action="searchResults.php";

	
    if ((form.search_who==null || form.search_who.value=="" || form.search_who.value==null) && (form.search_what == null || form.search_what.value=="" || form.search_what.value==null))  {
        validateError="Please enter your search terms";
	alert(validateError);
        return false;
    }
    if(form.location.value=='' ||form.location.value==null){
		validateError="Please enter a location!";
		alert(validateError);
		return false;
    }
    /*if(document.dispSearch.prem.checked==true && (document.dispSearch.portal_name.value=='' ||document.dispSearch.portal_name.value==null)){
		validateError="Please enter a portal name!";
		alert(validateError);
		return false;
	}*/
    return true;
}