You can do this a couple of different ways. First of all - this only matters if you are using a Linux/Unix server. If you are using a windows server you may not need to change the permissions or it will be slightly different then below.
The first and easiest way to change the permissions is with your FTP client, this is usually something like WS_ftp or cuteFTP. Usually you can find something called: CHMOD. In ws_ftp you can do this by right clicking on the file name. It may be slightly different for other ftp clients. Then for 777 check all of the boxes that come up in the options. It is usually a better idea to change this to permissions of 666 instead of 777 in most cases. However in some case's it is necessary to change the permissions to 777. For more information try reading over the following thread:
http://www.flash-db.com/Board/index.php?board=19;action=display;threadid=977