function qt(selector) {
    selector = selector || "#form input[title],#form textarea[title]";
    $(selector).qtip({
      position: {
        corner: {
          target: 'topRight',
          tooltip: 'bottomLeft'
        }
      },
      show: { when: { event: 'focus' } },
      hide: { when: { event: 'blur' } },
      style: {
          name: 'green',
          margin: '0',
          padding: '7px 7px',
          border: {
              width: 1,
              radius: 5
          },
          width: {
              max: 300,
              min: 0
          },
          tip: true
      }
  });
}

