/* JScript to trap the 'enter' button on a text field and to tie that into
 *  a submit button and make the 'enter button' call the button submit event.
 */

function SubmitTrap(btn, event)
{
    if( document.all )
    {
        if( event.keyCode == 13 )
        {
            event.returnValue=false;
            event.cancel = true;
            btn.click();
        }
    }
	// Suport for non IE browsers...
    if( event.which == 13 )
    {
        event.returnValue=false;
        event.cancel = true;
        btn.click();
    }
}
