allowFocus = true;
if (document.all) {
  ver = navigator.appVersion;
  if (ver.search("MSIE")!=-1) {
    x=parseFloat(ver.slice(ver.search("MSIE")).split(";")[0].slice (4));
    if (x<5.5) {
      allowFocus = false;
    }
  }
}



function onEnter(e2, el) {
  if (window.event.keyCode == 13) {
    if (el == null) {
      e2.submit();
    }
    else {
      el.focus();
      el.select();
      window.event.cancelBubble = true;
      return false;
    }
  }
}


doc = document.all;
if (document.all != null) {
  doc = document.all;
} else {
  if (document.layers != null) {
    doc = document.layers;
  } else {
    doc=document;
//    alert ("Please tell, me that the JS-Error 1234 has occured!\nthx\nKlaus");
  }
}


function doSubmit (frm) {
  if (document.layers) {
    document.layers[frm].submit();
  } else {
    if (document.all) {
      document.all[frm].submit();
    } else {
      if (document.getElementById) {
        document.getElementById(frm).submit();
      }
    }
  }
//  eval ("doc."++".submit()");
}



function openwin (url, name, x, y, sb) {
  if (!sb) {
    sb="yes";
  }
  if (!x) {
    x=640;
  }
  if (!y) {
    y=480;
  }
  if (name) {
    if (url) {
      w=window.open ("/_/load.html", name, "resizable=yes, width="+x+", height="+y+", scrollbars="+sb);
      w.document.writeln ("<HTML>");
      w.document.writeln ("<HEAD>");
      w.document.writeln ("<TITLE>Loading ...</TITLE>");
      w.document.writeln ("<LINK rel=\"stylesheet\" type=\"text/css\" href=\"/css/style.css\">");
      w.document.writeln ("</HEAD>");
      w.document.writeln ("<BODY topmargin=\"0\" leftmargin=\"0\" bgcolor=\"#D0FF90\">");
      w.document.writeln ("<TABLE width=\"100%\" height=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">");
      w.document.writeln ("<TR>");
      w.document.writeln ("<TD width=\"100%\" height=\"100%\" align=\"center\" valign=\"middle\">");
      w.document.writeln ("<H2>loading ...</H2>");
      w.document.writeln ("(please wait)");
      w.document.writeln ("</TD>");
      w.document.writeln ("</TR>");
      w.document.writeln ("</TABLE>");
      w.document.writeln ("</BODY>");
      w.document.writeln ("</HTML>");
      if (allowFocus) {
        w.focus();
      }
      w=window.open (url ,name ,"resizable=yes, width="+x+", height="+y+", scrollbars="+sb+", resizable=yes");
    }
  }
}
