Hi there,

I'm using the following code:

HTML Code:
I'm hoping that it will resolve itself as the following:

HTML Code:
Needless to say, that the variable new_pic has the number 2 stored in it, but I keep getting JavaScript errors whenever I load up the page.

I'd be REALLY grateful to anyone telling me just where I'm going wrong.

Thanks very much,