browser=navigator.appName;
//alert(browser);
function keyHandler(e)
{
    var pressedKey;
    var a;
    if (document.all)    { e = window.event; }
    if (document.layers) { pressedKey = e.which; pressedCharacter2 = String.fromCharCode(pressedKey); alert(e.which + pressedCharacter2);}
    if (document.all)    { pressedKey = e.keyCode; }
    pressedCharacter = String.fromCharCode(pressedKey);
    if(browser=="Netscape")
    {
    switch(e.which)
    {
	case 107:
		location.href="/vmek2/vkeres2.phtml";
		break;
	case 115:
		location.href="/vmek2/help.phtml";
		break;
	case 98:
		location.href="/vmek2/beallit.phtml";
		break;
	case 102:
		location.href="/";
		break;
	case 122:
		history.go(-1);
		break;

   }
}
	if(browser=="Microsoft Internet Explorer")
	{
    switch(pressedCharacter)
    {
	case "k":
		location.href="/vmek2/vkeres2.phtml";
		break;
	case "s":
		location.href="/vmek2/help.phtml";
		break;
	case "b":
		location.href="/vmek2/beallit.phtml";
		break;
	case "f":
		location.href="/";
		break;

   	}
   }
   
//alert(' Character = ' + e.which + e.keyCode + pressedCharacter);
//       alert(' Character = ' + pressedCharacter + ' [Decimal value = ' + pressedKey + ']');
}
 document.onkeypress = keyHandler;
//  document.write (String.fromCharCode(8))

