var isNetscape = false;
var isIE = false;
var isWhoKnows = false;

//This determines which browser the user is using
if (parseInt(navigator.appVersion) >= 4)
{
	if(navigator.appName == "Netscape")
	{
		isNetscape = true;
	}
	else if (navigator.appName == "Microsoft Internet Explorer")
	{
		isIE = true;
	}
	else
	{
		isWhoKnows = true;
	}
}
	
// this captures the events of the user
if(isNetscape) 
{
	document.captureEvents(Event.KEYUP);
}
document.onkeyup = checkValue

function checkValue(evt)
{
	var theButtonPressed;
	if (isNetscape)
	{
		theButtonPressed = evt.which;
	}
	else if(isIE)
	{
		theButtonPressed = window.event.keyCode;
	}
	else if(isWhoKnows) 
	{
		alert("Please hit the submit button to process form");
	}	
	if (theButtonPressed == 13) 
	{
		do_login();
	}
}