I have a simple script to load a text box when a radio button is selected...it works as intended in IE but the readyState is always a 1 in Firefox so it never loads.

Here is the ASP page that with the form that calls the function (ajaxtest.asp):
Code:
<html>
  <head>
    <title>JavaScript and the DOM</title>
  </head>
  <script type="text/javascript" src="getcontent.js"></script>
  <body>
    <form action="POST">
      NO&nbsp;<input type="radio" name="gettext" value="no" onClick="getsometext(this.value);" />&nbsp;&nbsp;
      YES&nbsp;<input type="radio" name="gettext" value="yes" onClick="getsometext(this.value);" />
    </form>
    <br /><br />
    <form action="ajaxtest.asp?show=test" method="post">
      <table border="1">
        <tr>
          <td><div id="gettest"></div></td>
        </tr>
        <tr>
          <td>Another text box&nbsp;<input type="text" size="20" name="textboxb"></td>
        </tr>
        <tr>
          <td><input type="submit" value="test" /></td>
        </tr>
      </table> 
    </form>
    <br /><br />
<%
  If Trim(Request.QueryString("show")) = "test" Then 
   Response.Write "text Box a: "&Trim(Request.Form("textboxa"))&"<br />"
  Response.Write "text Box b: "&Trim(Request.Form("textboxb"))
 end If
%> 
 </body>
</html>
and here is the txt file with the text box to load (test.txt):

Code:
A text box&nbsp;<input type="text" size="20" name="textboxa" />
and here is the script with the function (getcontent.js):

Code:
// JavaScript Document
   var request = false;
   try {
     request = new XMLHttpRequest();
   } catch (trymicrosoft) {
     try {
       request = new ActiveXObject("Msxml2.XMLHTTP");
     } catch (othermicrosoft) {
       try {
         request = new ActiveXObject("Microsoft.XMLHTTP");
       } catch (failed) {
         request = false;
       }  
     }
   }
   if (!request)
     alert("Error initializing XMLHttpRequest!");
   function getsometext(a) {
     var url = "test.txt";
     request.open('GET', url, true);
     request.send(null);
   if (request.readyState == 4) {
    if (request.status == 200) {
     if (a=='yes') {
      //alert("status is " + request.status + " test");
      var response = request.responseText;
      document.getElementById("gettest").innerHTML = response;
     }  else if (a=='no') {
      document.getElementById("gettest").innerHTML = "";
     }
    } else {
       alert("status is " + request.status);
     }
   } else {
     alert("readyState is " + request.readyState);
    }   
 
  }
What am I missing that makes it so it doesn't work in Firefox but does in IE?