Check to see if FileMaker document is open

hi
Can some one tell me how to do the following; Once I’ve tried to add a record to a database using Applescript (no problem here, I know how to do this) I want to use the script to check to see if a database is open in Filemaker and then open it if it’s not. I know how to do it for an application or a server volume but I’m not sure how to do it for a document
Thanks!!

This may work:

tell application "FileMaker Pro"
try
    database "fakturas 2003.1"
    display dialog "Opened!"
on error
display dialog "Not opened!"
end try
end tell

Thanks for that JJ - this is what I ended up with which works fine;

tell application “FileMaker Pro”
try
database “test.fp5”
on error
open alias “hd:Users:username:Desktop:databasename.fp5”
end try
end tell