As you may wander if there is a code convetion for JavaScript, well there are a lot of articles outside in the web. I recommend a Douglas Crockford’s page http://javascript.crockford.com/code.html

Related posts:

  1. JavaScript rounded corners
  2. Flex Javascript communication
  3. Flex Javascript communcation example