#layout').addClass('ui-state-error');
              $('#layout').siblings('.error-msg').append('<div>'+err.message+'</div>');
              error_els.push('#layout');
              has_error = true;
            }
          }

          // validate requirements for each case type
          var holes = $('#mount-holes-num').val().replace(/[^\d.-]/g, '');
          var size = $('#mount-holes-size').val().replace(/[^\d.-]/g, '');
          var w_pad = $('#width-padding').val().replace(/[^\d.-]/g, '');
         