anchor.diff:  </div>
   
   <script type="text/javascript">
  -	from_file_selected();
  -</script>+  <% if obj.data_url.blank? -%>
  +  from_file_selected();
  +  <% else -%>
  +  from_url_selected();
  +  <% end -%>
  +
  +</script>
  +
  
positive.code:                 <%= link_to_function image("internet_large"),"from_url_selected(); return (false);",:class=>"block_link",:id=>"upload_from_url_button",:title=>tooltip_title_attrib('Add from a remote URL') -%>
              </li>
              <li id="upload_options">
                  <div id="upload_from_file">
                      <p>
                          <b>File to upload:</b>
                          <span class="required">*</span>
  
negative.code:      obj.data_url=params[upload_field.to_sym][:data_url] if params[upload_field.to_sym][:data_url]
       obj.original_filename = params[upload_field.to_sym][:original_filename] if params[upload_field.to_sym][:original_filename]
     end
  
     upload_display=obj.data_url.blank? ? "block" : "none"
     from_url_display=upload_display=="block" ? "none" : "block"
  
  -%>
  
  