anchor.diff:    <legend><%= t("assignment.properties") %></legend>
       <%= raw( f.label :short_identifier, t(:short_identifier) ) %>
       <% if @assignment.id.nil? %>
  -      <%=raw( f.text_field :short_identifier,
  -                       :onchange =>  "$(
  -                            'assignment_repository_folder').setValue(
  -                                    $(this).getValue())" )%><br />
  +      <%=raw( f.text_field :short_identifier ,
  +                       :onchange =>  "set_onbeforeunload(true);
  +                       $('assignment_repository_folder').setValue($(this).getValue())" )%><br />
       <% else %>
  -      <%= raw( f.text_field :short_identifier ) %><br />
  +      <%= raw( f.text_field :short_identifier ,
  +                            :onchange =>  "set_onbeforeunload(true);" ) %><br />
       <% end %>
   
       <%= raw( f.label :description, t(:name) ) %>
  -    <%= raw( f.text_field :description ) %><br />
  +    <%= raw( f.text_field :description,
  +                          :onchange => "set_onbeforeunload(true);" ) %><br />
       <%= raw( f.label :message ) %>
  -    <%= raw( f.text_area :message, :rows => 8, :cols => 65 ) %><br />
  +    <%= raw( f.text_area  :message, 
  +                          :rows => 8, :cols => 65,
  +                          :onchange => "set_onbeforeunload(true);" ) %><br />
   
       <% if !@sections.empty? %>
         <div id="section_due_dates_type_form_right" class="information">
  
positive.code: <%
    # For the internationalization of the Calendar
  %>
  
  <% if I18n.default_locale == :en %>
     <%= calendar_date_select_includes "silver" %>
  
negative.code:         :checked => @assignment.marking_scheme_type == Assignment::MARKING_SCHEME_TYPE[key],
          :onclick =>"notice_marking_scheme_changed(#{@assignment.id.nil?},
                     '#{Assignment::MARKING_SCHEME_TYPE[key]}',
                     '#{@assignment.marking_scheme_type}')" ,
          :onchange => "set_onbeforeunload(true);" ) %>
  
        <%= raw( f.label("marking_scheme_type_" + Assignment::MARKING_SCHEME_TYPE[key],
            h(I18n.t("assignment.marking_scheme.#{value}")),
            :class => "radio_label") ) %>
  