I have an inexplicable javascript error on the line:

setTimeout("mD("+el+");", speed);

the error is:

missing ] after element list

mD([object HTMLDivElement]);

el is an element that I have retrieved with getElementByID.

Does anyone else find that these sort of annoying JS errors occur frequently and can cause your work to grind to a halt.

or am I just stupid?