﻿// JScript File
var currentFocus = null;
function setFocus(elm, status)
{
    if (status)
        currentFocus = elm;
    else
        currentFocus = null;
}
document.onkeydown = function(e)
{
    e=e || window.event;
    var code = e.keyCode || e.which;
    if (code == 13)
    {
        if (document.getElementById('p1oplTextBox'))
        {
            if (document.getElementById('p1oplTextBox') == currentFocus)
            {
                return true;
            }
        }
        if (document.getElementById('p17infoTextBox'))
        {
            if (document.getElementById('p17infoTextBox') == currentFocus)
            {
                return true;
            }
        }
        return false;
    }
    return true;
}
