Code from MX tutorial in CS3

I just completed this tutorial on Kirupa:

http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm

I am getting 2 error messages pertaining to the code that was given to me to place on the actions frame:

Error Scene=Scene 1, layer=action, frame=1, Line 79: Statement block must be terminated by ‘}’
function picture_num() {

Error Scene=Scene 1, layer=action, frame=1, Line 81: Syntax error.
pos_txt.text = current_pos+" / "+total;

Total ActionScript Errors: 2, Reported Errors: 2

I just copied this from the tutorial, so could this be a CS3 compatibility issue? File attached.