/* SEARCH RELATED FUNCTIONS ------ */

/**
 * Validates the document search form fields.
 * 
 * @param {Object} form the form containing the parameters for the search of documents.
 * @param {String} msgMandatorySearch error message displayed when the search field is missing.
 */
function searchForDocuments(form, msgMandatorySearch) 
{
   var n = form.content.value;
   if (n == '') {
      alert (msgMandatorySearch);
      form.content.focus();
      return false;
   }
   
   return true;
}
