Its not possible to open a file in JavaScript but you can upload a file to the server using the html tag . Insert this tag in a html form and process this form answer with a CGI script on the server.
You will just need a simple script to do this. Try searching for webmaster tips online. There you will find the script and can simply copy and paste it.