Yup, that does look like Javascript to me. And I don't see anything which has anything to do with
applets at all. So I think it would be best to move it to our forum where Javascript questions are discussed.
And it would help if you could edit the post and put your code (HTML and Javascript both) inside the "code" tags. Otherwise the forum software tends to treat it as markup or do other confusing things to it.
Oh, and you might also want to edit the post to provide a useful subject. Right now the subject contains no information at all -- why would anybody want to read it?