// Utility to prevent default button event from firing from within multi-line text boxes in FireFox.
// Pass in the client ID of any multi-line text box that resdies within a panel that has a default button set

function PreventSubmitOnEnter(controlId) {

    try {
        if (!document.all) {
            var obj = $get(controlId);
           
            if (obj.addEventListener) { 
                obj.parentNode.addEventListener("keypress",
                    function(e) {
                        if (e && e.keyCode && e.keyCode==13) {
                            e.stopPropagation();
                        }
                    }, false); 
            } 
        }
    } catch (e) {}
}
