$().ready(function() {

  $(".contactFRM").validate({

    rules: {
      firstName: "required",
      phone: "required",
      comments: "required",
      email: {
        required: true,
        email: true
      }
    },
    messages: {
      firstName: "Please enter your <strong>First Name</strong>",
      phone: "Please enter your <strong>Phone Number</strong>",
      comments: "Please enter your <strong>Comments</strong>",
      email: {
        required: "Please enter your <strong>Email Address</strong>",
        email: "Please enter a valid email"
      }
    }
  });
  
  $(".registerFRM").validate({

    rules: {
      loginName: "required",
      password: "required",
      firstName: "required",
      lastName: "required",
      email: {
        required: true,
        email: true
      }
    },
    messages: {
      loginName: "Please enter your <strong>Login Name</strong>",
      password: "Please enter your <strong>Password</strong>",
      firstName: "Please enter your <strong>First Name</strong>",
      lastName: "Please enter your <strong>Last Name</strong>",
      email: {
        required: "Please enter your <strong>Email Address</strong>",
        email: "Please enter a valid email"
      }
    }
  });
});