function load(target) 
{
  var i = get_i(target);
  top.head.document.links[i].className="AM_HERE";
  if (target == "a_sendf") {
	document.forms.login.name.focus(); }
  else if (target == "a_getf") {
	document.forms.login.username.focus(); }
  else { window.focus(); }
} // end load


function unload(target) 
{
  var i = get_i(target);
  top.head.document.links[i].className="A";
} // end unload


function get_i(target)
{
  var i	 = 0;
  var max = top.head.document.links.length;
  while (i <= max) {
    if (top.head.document.links[i].name == target) {
      break; }
    i = i+1;
  }
  return i;
} // end get_i


function frameMe(){
  var frameset = "http://files.legalscopist.com/index.html";
  var frame = "main";
  page = new String(self.document.location.pathname);
  if(window.name != frame){
    var contents = frameset + "?" + page + "&" + frame;
    top.location.replace(contents);
  }
  return;
} // end frameMe


function loadDoc(){
  var query = window.location.search.split('&');
  var page = query[0].substr(1);
  var frame = query[1];
  if(page && frame){
    var contents = "top." + frame + ".location.replace('" + page + "')";
    eval(contents);
  }
  return;
} // end loadDoc

