jQuery.ajaxSetup({
    'beforeSend': function(xhr) {
        xhr.setRequestHeader("Accept", "text/javascript")
    }
});

jQuery.fn.submitWithAjax = function() {
    this.live('submit', function() {
        $.post(this.action, $(this).serialize(), null, "script");
        return false;
    })
    return this;
};


$(document).ready(function() {
    $('.confirm').click(function(){
        if (!confirm('Are you sure?')){
            return false;
        }
    });
   //$('a.button').button();
});

