Thank you for your answer. I thought I couldn't write code to browser-enabled InfoPath form.
Moreover, would there be a way to ask the user if he really wants to check out (in a Word 2007 way)? Because I expect multiple users to open the form at the same time just to read infos so I don't want the first of them to check it out and ...