I\'m still straggeling with an piece of JavaScript coding. I\'ve stripped it down to the following coding: