// Set focus to the sole input field - avoids users having
// to click on that field.  The obvious onLoad=... code caused
// this window to push in front of popups that appeared before
// the main window finished loading.  Changing to onFocus=...
// worked in IE but in NS 4.7 there was no onFocus event
// if no popup appeared.  So set a focus variable "f" to 1
// at the start of the page and track whether the window
// loses focus after that.  If it never loses focus, onLoad
// or onFocus sets input field focus.  If it does lose focus,
// onFocus sets input field focus when we get it back.
window.f=1;
// window.status = "f:=" + window.f;
function st(s)
{
//   window.status = window.status + " " + s;
}
function input_focus(t)
{
  t.focus();
}
function ns()
{
  var browserName=navigator.appName; 
  var browserVer=parseInt(navigator.appVersion); 
  if (browserName=="Netscape")
    return true;
  else 
    return false;
}
function on_blur(t)
{
  st('onBlur');
  window.f=0;
}
function on_focus(t)
{
  st('onFocus');
  window.f=1;
  input_focus(t);
}
function on_load(t)
{
  st('onLoad');
  if (ns()) {
    if (window.f) {
	input_focus(t);
    }
  }
}

