I'm trying to write simple function for adding picture with AJAX use.

Unfortunatelly I don't know how to handle <input type="FILE" id="file"/>

What I need is to get all file information in to JS script and send it to php script to load the file. Does any body have script that could show how the FILE is handle by JAVASCRIPT ?

PS. I'm not looking for ready AJAX class like JQueary..
Ps2. I'm also sending some comment information in this function...