function getInfo(filename) {

var xmlhttp;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
     xmlhttp=new XMLHttpRequest();
} else {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
if ( xmlhttp != null ) 
{ 
    xmlhttp.open("GET",filename,false); // the false makes this synchronous!
    xmlhttp.send( null );
    var text = xmlhttp.responseText;
    // text contains the ENTIRE CONTENTS of the text file 
    // you *could* just write those contents directly to the HTML output:
    document.write( text );
    
}

}
