$(document).ready(
    function()
    {

       $('.action').livequery('click',

            function()
            {

                var type=$(this).siblings('input[type=hidden]').attr('class');
                $('.right_part').html('<h3>Action for '+ucwords(type)+'</h3>' + $('.info_'+type).html());

            }

       )
    }
);
function ucwords( str ) {
    // http://kevin.vanzonneveld.net
    // +   original by: Jonas Raoni Soares Silva (http://www.jsfromhell.com)
    // +   improved by: _argos
    // *     example 1: ucwords('kevin van zonneveld');
    // *     returns 1: 'Kevin Van Zonneveld'

    return str.replace(/^(.)|\s(.)/g, function ( $1 ) { return $1.toUpperCase ( ); } );
}

