function swapProcessed(recordKey, processed){
	forward = 'forward=/WEB-INF/include/recordActions.jsp?processed='+!processed+'&key='+recordKey;
    url = 'RecordSwitchProcessed?recordKey='+recordKey+'&'+forward;
    target = $('#actions_'+recordKey);
    target.load(url, function(){
        target.removeClass('ajax-loading');
    }).addClass('ajax-loading').empty();
}

function recordDelete(recordKey){
    if(confirm("This will permanently delete the record, are you sure you want to continue?")){
        url = 'RecordDelete';
        $.get(url, {recordKey:recordKey,callType:'AJAX'}, function( data ) {
            $('#row_'+recordKey).hide();
        });
    }
}


