﻿function funcDisplayHelp(target)
{
    var winHelp = window.open(target, 'winHelp', 'width=350px, height=325px, menubar=0, status=0, titlebar=0, toolbars=0, scrollbars=1');
    winHelp.focus();
}

function funcCloseHelp()
{
    window.close();  
}

function funcHiliteBtn(obj, state)
{
    if(state==1)
    {
      obj.style.backgroundColor = '#deebf9';
      obj.style.color = '#06c';
      obj.style.cursor = 'hand';
    }
    else
    {
      obj.style.backgroundColor = 'transparent';
      obj.style.color = '#797979';
    }
}

function checkEnter(e, nextfield)
{
  var characterCode
  if(e && e.which)
  {
    e = e
    characterCode = e.which
  }
  else
  {
    e = event
    characterCode = e.keyCode
  }

  if(characterCode == 13)
  {
    document.getElementById(nextfield).click();
    return false 
  }
  else
    return true 
}