function keyPressed(e)
{
	var code;
	
	if (!e) var e = window.event;
	
	if (e.keyCode) code = e.keyCode;	// IE
	else if (e.which) code = e.which;	// Mozilla
	//alert(code + " = " + String.fromCharCode(code));
/*
	alert('Key():\nkeycode = '+code+
		'\nfromCharCode() = '+
		String.fromCharCode(code));
*/ 
	var anchors = document.getElementsByTagName('a');
	for (var i = 0; i < anchors.length; i++)
	{
		if (anchors[i].getAttribute('accesskey') == String.fromCharCode(code))
		{
			document.location = anchors[i].href;
			break;
		}
	}
}
