javascript performance

If you expect to access a DOM elemnt severla times, access it once, and the use it as a local variyable: