Edit doc in frame

I have this code in JS header for Edit document:function EditDocument()

{

url=location.href.toLowerCase();

url=url.replace("open","edit");

window.location.href=url;

}

But when I open document in FRAME there is not a specific document location in url bar, only : http://servername/database.nsf/ is displayed.

therefore I can not use this : url=url.replace(“open”,“edit”);

code.

I am using image/picture on click event.

any idea!!!

Subject: Edit doc in frame

OK…Code works in frame also.