jQuery.fn.dissableSubmit = function(){
  this.each(function(){
    jQuery(this).bind( 'submit', function(){
      jQuery("input[type=submit]", this)
          .addClass( 'disabled')
          .attr( 'disabled', 'disabled')
    })
  });
}

jQuery.fn.enableSubmit = function(){
  this.each(function(){
    jQuery("input[type=submit]", this)
        .removeClass( 'disabled')
        .attr( 'disabled', false)
  });
}

jQuery.fn.ajaxContent = function(){
  this.each(function(){
    jQuery(this).css( 'position', 'relative');
    jQuery(this).append( '<div class="saving_ajax_content"></div>');
  });
}
jQuery.fn.ajaxContentRemove = function(){
  this.each(function(){
    jQuery(this).css( 'position', 'relative');
    jQuery(this).find('.saving_ajax_content').remove();
  });
}

