window.addEvent('domready', function(){
    $('frm1').getElements('input[name=purpose]').each(function(el){
        el.addEvent('change', function(){
            $('frm1').getElement('input[name=other]').setStyle('display', (el.get('value') == 'other' ? '' : 'none'));
        });
    });
});
