function BrowserCheck() {
  var b = navigator.appName;
  if (b=="Microsoft Internet Explorer") 
    this.b = "ie" 
  else  
    this.b = b 
  this.v = parseInt(navigator.appVersion)
  this.ie = (this.b=="ie" && this.v>=4) 
  this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0) 
  this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0) 
}
is = new BrowserCheck();

function onLoad() {
  var v;
  var elts = document.forms["edu_form"].elements;
  if ((v = elts["login"]) != null) {
    v.focus();
  } else if ((v = elts["password"]) != null) {
    v.focus();
  }
  document.onkeydown=keyDown;
}

function keyDown(e) {
  if (is.ie)
	var keycode = event.keyCode;
  else
	var keycode = e.which;
	
  if (keycode == 13)
	document.edu_form.submit();
}