i want to populate a html list box (select tag) with the content of file (i.e each line of the file should become a single option in the list box (select element)).

suppose i have a file say
Code:
"load_lines.txt"
containing

Code:
s1.txt
s2.txt
s3.txt
s4.txt
s5.txt
there is a html form

Code:
<html>
  <head>
    <title>List box Loading</title>
  </head>

  <body>
    <form id="frm1" name="frm1" action="" method="GET">

      <select id="lb" name="lb" size="5">
      </select><br /><br />

      <input type="button" id="btn1" name="btn1" value="OK" />

    </form>
  </body>
</html>
when the form is loaded it should populate the list box (select element) with the contents of the file
Code:
"load_lines.txt"
.

can anyone tell how to do this using javascript?. please give the javascript code.