
        $(function () {
            $('input:[class=roxradio]:radio').each(
                function () {
                    $(this).hide().after('<img src="/images/cross.png" id="' +  $(this).attr('id') + '_tick" title="' + $(this).attr('name') + '" rel="' + $(this).attr('id') + '" onclick="toggleRadio(this);">');
                }
            );
        });

        function toggleRadio(node) {
            var imgTick = $(node);
            var radio = $('#' + imgTick.attr('rel'));
            changeRadioMaskImage(radio.attr('name'), imgTick.attr('title'));
            if (radio[0].checked === false) {
                radio[0].checked = true;
                imgTick.attr('src', '/images/tick.png');
                radio.click();
				}
            else {
                radio[0].checked = false;
                imgTick.attr('src', '/images/cross.png');
            }
        }

        function changeRadioMaskImage(radioName, imgRadioName) {
            $('input[name=' + radioName + ']:radio').each(function () { $(this)[0].checked == false; });
            $('img[title=' + imgRadioName + ']').attr('src', '/images/cross.png');
        }

       
