Control opening document in read or edit mode via web

Hi ,

I would like to control the open mode of the document , if it’s opened in edit mode by any user document open in read mode , else in edit mode

Is it possible to do that for web ?

another question can I know if the document is edited by other user ?

note : server rel 5 ; client rel 6

thanks

Subject: Control opening document in read or edit mode via web

the best thing I come up with issue , is to use another database to hold the locked documents .I have use sample provided by Todd M. Hebert in e.promag site