help on mount volume script

I am trying to use an applescript to mount a server volume when user logs in.


mount volume "afp://username:password@server_name/share_name"

First, it displays a timeout dialog and then gives me a file permission error.
Any help would be much appreciated.

Thank you in advance.

Jin