anchor.diff:    document.observe('dom:loaded', function() {
       uncheckAll();
     });
  -</script>
  -<%#*<script type="text/javascript" charset="utf-8">%>
  -  <%#*window._token = '%>
  -<%#= form_authenticity_token -%>
  -  <%#*';%>
  -<%#*</script>%>+</script>
positive.code:         <% @link_reason="Reason for grouping" unless @link_reason -%>
  
          <%= text_field_tag :survey_search_query, @survey_search_query,:onclick=>"javascript:$('survey_search_query').select();" %>
    <%#*<ul class="sectionIcons">%>
    <%#*<li>%>
    <%#= icon('add_to_cart', add_to_cart_url, 'Add selected variables to cart', {:title => "Add selected variables to cart", :action => :add_to_cart}, 'Add selected variables to cart', true) -%>
    <%#*</li>%>
    <%#*</ul>%>
    <%#*<ul class="sectionIcons">%>
    <%#*<li>%>
    <%#*<span class="icon">%>
    <%#= button_to_remote "Add selected variables to cart", {:title=>"Add selected variables to cart", :url=>{:action=> "add_to_cart"}, :before => "Form.getInputs(this.form, null,'submit')[0].value = 'add';" }-%>
    <%#*Add selected variables to cart%>
    <%#*</span>%>
    <%#*</li>%>
    <%#*</ul>%>
          <%= submit_tag 'Search selected surveys again', :name=>"_submit", :id => "search_variables_button",:onclick => "Form.getInputs(this.form, null,'submit')[0].value = 'search';" %>
    <%#= check_box_tag "append_search" -%>
    <%#= label_tag 'append_search', 'Add search results to currrent table' -%>
  
        </div>
        <div style="position: absolute; bottom:-10em; left:26em;">
                <%= image_tag method_to_icon_filename("large-spinner"), :id => "doing_stuff_spinner", :alt=>"working...", :title=>"working...", :style => "display: none; vertical-align: middle;",:height => '64', :width => '64' -%>
  
negative.code: <% if logged_in? -%>
        <div style="position: absolute; bottom:1em; right:1em;">
          <%= submit_to_remote '_submit', 'Add selected variables to cart', {:url=>{:action=> "add_to_cart"}, :before => "Form.getInputs(this.form, null,'submit')[0].value = 'add';Element.show('spinner')",:success => "Element.hide('spinner')"} -%>
        </div>
  <% end -%>
  <!-- This code used to be used for linking variables together, might be used again-->
        <!-- <div style="position: absolute; bottom:1em; right:1em;"> -->
          <%#= text_field_tag :link_variables_text, @link_reason %>
          <%#= submit_to_remote '_submit', 'Group selected variables', {:url=>{:action=> "add_to_cart"}, :before => "Form.getInputs(this.form, null,'submit')[0].value = 'link';Element.show('spinner')",:success => "Element.hide('spinner')"} -%>
  