/*
 * Filename: Global.asax.js
 * Description: Global JavaScript function library
 * 
 */

function KeyDownHandler(buttonID)
{
    if(window.addEventListener) // Browsers using DOM Event Standard (i.e. Firefox)
    {
        return;  // Do nothing.  Special handling is handled at the calling page or user control.
    }
    else // IE 4+ and older browsers
    {
        // process only the Enter key
        returnKey = 13;
        if (event.keyCode != returnKey) return; // Ignore non-Return key
            
        // Cancel the default submit
        event.returnValue = false;
        event.cancel = true;

        // Submit the form by programmatically clicking the specified button
        // document.getElementByID(buttonID).click();
        buttonID.click();
        return;
    }
} // KeyDownHandler()

