function sizechk(descr_max, title_max, tags_max, id) {

  if(document["form"+id].descr.value.length > descr_max) {
    alert('Please use a shorter description. Please remove '+
          (document["form"+id].descr.value.length - descr_max)+ ' characters');
    return false;
  }

  if(document["form"+id].title.value.length > title_max) {
    alert('Please use a shorter title. Please remove '+
          (document["form"+id].title.value.length - title_max)+ ' characters');
    return false;
  }

  if(document["form"+id].tags.value.length > tags_max) {
    alert('Please use fewer tags. Please remove '+
          (document["form"+id].tags.value.length - tags_max)+ ' characters');
    return false;
  }

  if (
      (document["form"+id].descr.value.length == 0) ||
      (document["form"+id].tags.value.length == 0) ||
      (document["form"+id].title.value.length == 0)
     )
  {
    alert('Please fill in all the requested information');
    return false;
  }

  return true;
}

