
  /*
    @checkMaxAvailability
      - Basic function to check and see if the value is above the availability amount
    -> Del
  */
  
  function checkMaxAvailability(elementObj, maxCount) {
    var formName = elementObj.form;
    if (formName.quantity.value > maxCount) {
      alert("Sorry, you can only order a maximum of " + maxCount)
      return false;
    }
    return true;
  }
