//
// $Id: Login.js,v 1.1 2008/07/11 14:13:37 sau Exp $
//
// --------------------------------------------------------
//
//                          MITRA
//
//   Copyright (c) 2002-2008 LUZ Engenharia Financeira
//
// -------------------------------------------------------
//

function checar_caps_lock(ev) 
{
	var e = ev || window.event;
	codigo_tecla = e.keyCode?e.keyCode:e.which;
	tecla_shift = e.shiftKey?e.shiftKey:((codigo_tecla == 16)?true:false);
	if(((codigo_tecla >= 65 && codigo_tecla <= 90) && !tecla_shift) || ((codigo_tecla >= 97 && 
        codigo_tecla <= 122) && tecla_shift)) 
    {
		document.getElementById('lblMensagemCapsLock').style.visibility = 'visible';
	}
	else 
	{
		document.getElementById('lblMensagemCapsLock').style.visibility = 'hidden';
	}
}

