//===============================================================================
// System        : FloridaSun Web Application
// Class         : ForceDefaultButton
// Description   : Provides a means to trap keyboard input on textboxes and force
//                 the click of a specific button when enter is pressed.
//
// Copyright     : Copyright (C) 2005 Cinnamon Systems Ltd. All rights reserved.
//                 No part of this code or its associated components may be used
//                 in any way without the express permission of the copyright
//                 owner. For contact information see www.cinnamonsystems.com.
//
// Author        : Graham Auty
//
// History       : Date         Version   Author          Description
//                 --------------------------------------------------------------
//                 01 Dec 2005  1.0.0000  Graham Auty     Initial setup
//===============================================================================


//-------------------------------------------------------------------------------
// Procedure     : fnTrapKD
// Description   : 
// Parameters IN : btn   -
//                 event -
//           OUT : None
//        IN/OUT : None
// Return Value  : None
//-------------------------------------------------------------------------------
function fnTrapKD(btn, event)
{
    if (event.keyCode == 13)
    {
        event.returnValue=false;
        event.cancel = true;
        btn.click();
    } 
}

