/**
 * jQuery
 */
$(document).ready(function() {
  
  $("#bmInstruct").hide();
  
  $("#showBmInstruct").click(function() {
  
    if ($("#bmInstruct").is(":hidden")) {
        $("#bmInstruct").slideDown("slow");
    } 
    
    else {
     $("#bmInstruct").hide();
    }
  });

  /**
   * Confirm Delete
   */
  $(".itemRemove").click(function() {
    return confirm("Are you sure you want to delete this item?");
  }); 

  /**
   * Confirm Conversion
   */
  $(".item_add").click(function() {
    return confirm("This will convert the product to a Refund Alert. Are you sure you want to do this?");
  }); 

  /**
   * Validataion
   */
  $("#createAccountForm").validate({
  rules: {
    user_password: "required",
    user_passwordConfirm: {
      equalTo: "#user_password"
    }
  }
  });

  $("#manageAccountForm").validate({
  rules: {
    user_passwordConfirm: {
      equalTo: "#user_password"
    }
  }
  });
    
}); // jQuery
