glowhead: Browserweiche für IE aber wie?

Beitrag lesen

hab mir ne Browserweiche geschrieben! als standart wird die datei für netscape geladen nach mozilla schaltet moz auch um doch die variante für den IE macht noch probleme! was ist da noch falsch?

function autowahl() {
 if (navigator.appName=='Microsoft Internet Explorer') {
  document.unten.links.location.href = "willk_ie.htm";
 }
 var moz =  !!(document.captureEvents  &&  document.documentElement);
  if (moz ==true) {
   document.location.replace ("willk_mo.htm");
  }
}

Danke mfg glowhead