function process_delete(id, obj, amount) {
    if (confirm('Do you want to delete this attendee?')) {
        new Ajax.Updater('attendees', '/attendees/attendee_delete/' + id + '?amount=' + amount, {asynchronous:true});
    }
}

function process_update(obj) {
	if ( /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) {
		var child = 2;
    } else {
		var child = 5;
    }

      new Ajax.Request('/attendees/update_' + obj.title + '/' + obj.parentNode.parentNode.childNodes[child].firstChild.value + '?data=' + escape(obj.value), {asynchronous:true, evalScripts:false});
}

function process_add(amount) {
    new Ajax.Updater('attendees', '/attendees/attendee_add/' + amount, {asynchronous:true});
}
