function field_error(result) {

    if (typeof(result) == 'string') { name = result; } else { name = result['error']; }

    e = document.getElementById(name);
    new Effect.Highlight(name, { startcolor: "#D72800",
                                   endcolor: "#FFFFFF",
                                   duration: 1 });

    if (result['error_title']) {


        new Tip(result['error'], 
                result['error_content'], {

                    delay: 0,
                    radius: 3,
                    title: result['error_title'],
                    showOn: false,
                    hideOn: false,
                    hideAfter: 5,
                    target: $(result['error']),
                    stem: 'topLeft',
                    hook: { target: 'bottomRight', tip: 'topLeft' },
                    offset: { x: -6, y: 0 }

                    });

        $(result['error']).prototip.show();

        Event.observe(document.body, 'click', function() { $(result['error']).prototip.hide(); }); 

    }

    e.focus();

}
