def tag_for_label_with_inline_help( label_text, field_id, help_text )
      _html = ""
      _html << %{<label for="#{field_id}">#{label_text}}
      _html << %{<img src="/images/icons/help_icon.png" onclick="$('#{field_id}_help').toggle();" class='inline_icon' />}
      _html << %{</label><br />}
      _html << %{<div class="inline_help" id="#{field_id}_help" style="display: none;">}
      _html << %{<p>#{help_text}</p>}
      _html << %{</div>}
      _html
    end
def tag_for_label_with_inline_help( label_text, field_id, help_text )
      _html = ""
      _html << %{<label for="#{field_id}">#{label_text}}
      _html << %{<img src="/images/icons/help_icon.png" onclick="$('#{field_id}_help').toggle();" class='inline_icon' />}
      _html << %{</label><br />}
      _html << %{<div class="inline_help" id="#{field_id}_help" style="display: none;">}
      _html << %{<p>#{help_text}</p>}
      _html << %{</div>}
      _html
    end
Create a set of tags for displaying a field label with inline help.
 Field label text is appended with a ? icon, which responds to a click
 by showing or hiding the provided help text.

 Sample usage:

   <%= tag_for_label_with_inline_help 'Relative Frequency', 'rel_frequency', 'Relative frequency of search traffic for this keyword across multiple search engines, as measured by WordTracker.' %>

 Yields:

   <label for="rel_frequency">Relative Frequency: <%= image_tag "/images/help_icon.png", :onclick => "$('rel_frequency_help').toggle();", :class => 'inline_icon' %></label><br />
   <div class="inline_help" id="rel_frequency_help" style="display: none;">
     <p>Relative frequency of search traffic for this keyword across multiple search engines, as measured by WordTracker.</p>
   </div>