$(document).ready(function()
{
    // Remove submit button (actually, remove last <p>aragraph in form)
    $('#rating form > p:last-child').remove();

    // Upon clicking a radio-button
    $('#rating input[@type="radio"]').click(function()
    {
        // get the rating.php file, tell it that it's an ajax_call and pass the value from the radio we clicked
        $.get('rating.php?ajax_call=1&rating=' +$(this).val(), function(data)
        {
            // Update the #rating-div with the new data
            $('#rating').html(data);
        })
    });
});
